stubs are already sorted, so we don't have to resort
authorAaron Patterson <aaron.patterson@gmail.com>
Sat, 15 Nov 2014 23:35:19 +0000 (15:35 -0800)
committerAaron Patterson <aaron.patterson@gmail.com>
Sat, 15 Nov 2014 23:35:19 +0000 (15:35 -0800)
The stub specifications and the regular specifications are sorted in the
same way.  Since the list of full specifications is based on the list of
already sorted stub specifications, there is no need to sort the full
specs.

lib/rubygems/specification.rb

index 87a9b603d1b6b7679d509618beba04f0b5eb8c09..b54c5d5a92490b4dca56015bef2bd3a4f4bcc859 100644 (file)
@@ -709,8 +709,6 @@ class Gem::Specification < Gem::BasicSpecification
       specs = {}
       Gem.loaded_specs.each_value{|s| specs[s] = true}
       @@all.each{|s| s.activated = true if specs[s]}
-
-      _resort!(@@all)
     end
     @@all
   end