Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Improve -rbundler performance by using autoloads
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Dec 21, 2016
1 parent 9eefcbe commit 6167ec8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bundler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

require "bundler/errors"
require "bundler/environment_preserver"
require "bundler/gem_remote_fetcher"
require "bundler/plugin"
require "bundler/rubygems_ext"
require "bundler/rubygems_integration"
Expand All @@ -32,6 +31,7 @@ module Bundler
autoload :FeatureFlag, "bundler/feature_flag"
autoload :GemHelper, "bundler/gem_helper"
autoload :GemHelpers, "bundler/gem_helpers"
autoload :GemRemoteFetcher, "bundler/gem_remote_fetcher"
autoload :GemVersionPromoter, "bundler/gem_version_promoter"
autoload :Graph, "bundler/graph"
autoload :Index, "bundler/index"
Expand Down
3 changes: 2 additions & 1 deletion lib/bundler/plugin/api.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# frozen_string_literal: true
require "bundler/plugin/api/source"

module Bundler
# This is the interfacing class represents the API that we intend to provide
Expand All @@ -24,6 +23,8 @@ module Bundler
# and hooks).
module Plugin
class API
autoload :Source, "bundler/plugin/api/source"

# The plugins should declare that they handle a command through this helper.
#
# @param [String] command being handled by them
Expand Down

0 comments on commit 6167ec8

Please sign in to comment.