diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2023-09-18 19:18:21 -0700 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-11-26 22:07:39 +0000 |
commit | 08308fe3e8fd51f4445be9408a418d9ac6960921 (patch) | |
tree | ff07be79dbd8244dc512a8b55f2ae4d1f011baff /gem_prelude.rb | |
parent | cc5d1bf026bcc5b4929a4f9d5e32d2fa5730348c (diff) | |
download | ruby-08308fe3e8fd51f4445be9408a418d9ac6960921.tar.gz |
[rubygems/rubygems] Reduce allocations when installing gems with bundler
```
==> memprof.after.txt <==
Total allocated: 1.13 MB (2352 objects)
Total retained: 10.08 kB (78 objects)
==> memprof.before.txt <==
Total allocated: 46.27 MB (38439 objects)
Total retained: 9.94 kB (75 objects)
```
Yes, we were allocating 45MB of arrays in `dependencies_installed?`,
it was accidentally cubic.
https://github.com/rubygems/rubygems/commit/13ab874388
Diffstat (limited to 'gem_prelude.rb')
0 files changed, 0 insertions, 0 deletions