summaryrefslogtreecommitdiff
path: root/test/ruby/test_method_cache.rb
diff options
context:
space:
mode:
authorMartin Emde <martin.emde@gmail.com>2023-08-31 20:11:54 -0700
committergit <svn-admin@ruby-lang.org>2023-09-07 00:33:28 +0000
commit86b93f74819dc814a223cd179d15b4d46dc3fc7a (patch)
tree3c36bf87f2059a686998d98768b9c0697625fc89 /test/ruby/test_method_cache.rb
parentaf1bedbbd93e952810149e79d7fa6c20960e5373 (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 'test/ruby/test_method_cache.rb')
0 files changed, 0 insertions, 0 deletions