Project

General

Profile

« Previous | Next » 

Revision 86b93f74

Added by martinemde (Martin Emde) almost 2 years ago

[rubygems/rubygems] Improve efficiency of Index#use and #search_all

Rename Index#use(override = true) to #merge!

Rename Index @all_specs to @duplicates, it is not actually all specs.
@duplicates only holds specs that would have been overridden during a call to
Index#use or Index#merge!

Reduced dupes in @duplicates by not double adding the new spec to the
index and the @duplicates during #merge!

Reduce Array creation by using specialized methods when the one result
or no results are needed from the search.

https://github.com/rubygems/rubygems/commit/47e91125db