diff options
author | Hartley McGuire <[email protected]> | 2025-03-25 23:27:09 -0400 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-03-27 13:57:26 +0900 |
commit | 752a1d785475d1950b33c7d77b289a6a3a753f02 (patch) | |
tree | fe7c11d2382dbe1dc605ef8dda7a6eeeec38fb30 /spec/ruby/library/stringio/shared | |
parent | af594f5166538d6d7f5c21d26ed824f03730c61a (diff) |
[rubygems/rubygems] Implement pub_grub strategy interface
My application spends more than 30% of time during `bundle update`
comparing versions due to versions being sorted inside
next_package_to_try. This has been addressed in pub_grub by defining a
strategy interface (a `#next_package_and_version` method) which allows
consumers to have finer control over the heuristic to select the next
package to try.
This commit implements the new strategy interface to remove extraneous
version sorting (previously in next_package_to_try) since only the final
count of versions is used.
Combined with a previous change to pub_grub (already applied to
Bundler), this commit results in `bundle update` taking only half the
time it did on 2.6.5.
https://github.com/rubygems/rubygems/commit/62f69e27f0
Diffstat (limited to 'spec/ruby/library/stringio/shared')
0 files changed, 0 insertions, 0 deletions