diff options
| author | Martin Emde <martin.emde@gmail.com> | 2023-08-31 20:11:54 -0700 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-09-07 00:33:28 +0000 |
| commit | 86b93f74819dc814a223cd179d15b4d46dc3fc7a (patch) | |
| tree | 3c36bf87f2059a686998d98768b9c0697625fc89 /parse.y | |
| parent | af1bedbbd93e952810149e79d7fa6c20960e5373 (diff) | |
[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
Diffstat (limited to 'parse.y')
0 files changed, 0 insertions, 0 deletions
