summaryrefslogtreecommitdiff
path: root/test/ruby/test_autoload.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2022-05-13 15:56:50 +0200
committergit <[email protected]>2022-05-16 17:24:14 +0900
commit641c3830df8177b38fcfca33d3a0ece8a2c1e7d2 (patch)
treeabe7d3096d7ce42d21ac57bfbb0fbb404a19b5b3 /test/ruby/test_autoload.rb
parentc380aac19d097f1d38d2299fe3f64567b42fb55d (diff)
[rubygems/rubygems] Use `Array#concat` in `SpecSet#for` to save memory
On `rails/rails` repository Gemfile, running the following script ``` # script.rb require "bundler/setup" ``` #### Before ``` ➜ rails git:(main) ✗ BUNDLER_VERSION=2.4.0.dev ruby-memory-profiler --pretty --no-detailed --allocated-strings=0 --retained-strings=0 script.rb Total allocated: 24.37 MB (207937 objects) Total retained: 2.98 MB (34152 objects) ``` #### After ``` ➜ rails git:(main) ✗ BUNDLER_VERSION=2.4.0.dev ruby-memory-profiler --pretty --no-detailed --allocated-strings=0 --retained-strings=0 script.rb Total allocated: 22.27 MB (206856 objects) Total retained: 2.98 MB (34152 objects) ``` https://github.com/rubygems/rubygems/commit/2ea2523afd Co-authored-by: Josh Nichols <[email protected]>
Diffstat (limited to 'test/ruby/test_autoload.rb')
0 files changed, 0 insertions, 0 deletions