Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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. rubygems/rubygems@47e91125db
- Loading branch information
1 parent
af1bedb
commit 86b93f7
Showing
2 changed files
with
48 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters