mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Make SpecificationPolicy autoload constant
It reduces memory usage about 204kb (1.4%). https://github.com/rubygems/rubygems/commit/b7d4b8c8a6
This commit is contained in:
parent
9736cb890b
commit
73707e5c51
Notes:
git
2021-12-27 10:46:04 +09:00
2 changed files with 1 additions and 1 deletions
|
@ -1316,6 +1316,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
|
|||
autoload :Source, File.expand_path('rubygems/source', __dir__)
|
||||
autoload :SourceList, File.expand_path('rubygems/source_list', __dir__)
|
||||
autoload :SpecFetcher, File.expand_path('rubygems/spec_fetcher', __dir__)
|
||||
autoload :SpecificationPolicy, File.expand_path('rubygems/specification_policy', __dir__)
|
||||
autoload :Util, File.expand_path('rubygems/util', __dir__)
|
||||
autoload :Version, File.expand_path('rubygems/version', __dir__)
|
||||
end
|
||||
|
|
|
@ -11,7 +11,6 @@ require_relative 'basic_specification'
|
|||
require_relative 'stub_specification'
|
||||
require_relative 'platform'
|
||||
require_relative 'requirement'
|
||||
require_relative 'specification_policy'
|
||||
require_relative 'util/list'
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in a new issue