summaryrefslogtreecommitdiff
path: root/test/ruby/test_lambda.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2023-09-14 19:34:15 -0700
committergit <svn-admin@ruby-lang.org>2023-09-15 17:54:01 +0000
commitc423d6e0e48bd8a94548ff7a6275d93ae770f9d1 (patch)
tree1da67385319147d91714bf0ba78ebca410a45fb6 /test/ruby/test_lambda.rb
parent4d86d932fdbe91e436a5680ffae2f4db1a23b3be (diff)
[rubygems/rubygems] Stop allocating the same settings keys repeatedly
Running `bundle update --bundler` on a rails app locally: ``` ==> 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
Diffstat (limited to 'test/ruby/test_lambda.rb')
0 files changed, 0 insertions, 0 deletions