[rubygems/rubygems] Stop allocating the same settings keys repeatedly
Running bundle update --bundler on a rails app locally:
bundle update --bundler
==> memprof.after.txt <== Total allocated: 301.90 kB (3794 objects) Total retained: 73.24 kB (698 objects) ==> memprof.before.txt <== Total allocated: 14.47 MB (196378 objects) Total retained: 25.93 kB (202 objects)
So for a slight increase in retained memory (all keys are now retained), we go from about 200k allocations in the settings file to under 4k
https://github.com/rubygems/rubygems/commit/e64debb6ae
[rubygems/rubygems] Stop allocating the same settings keys repeatedly
Running
bundle update --bundleron a rails app locally:So for a slight increase in retained memory (all keys are now retained),
we go from about 200k allocations in the settings file to under 4k
https://github.com/rubygems/rubygems/commit/e64debb6ae