diff options
author | Samuel Giddins <[email protected]> | 2023-09-18 12:47:01 -0700 |
---|---|---|
committer | git <[email protected]> | 2023-10-07 16:04:42 +0000 |
commit | bf71b0eda54b551db023cda9051b9be218c0f75d (patch) | |
tree | 74474cc9a3691e9af899fb69ff7f6616ecf96a43 /compar.c | |
parent | 5810304c2edce3f9e889b4f55cf5c442a92d1a48 (diff) |
[rubygems/rubygems] Optimize allocations in Gem::Version
From running in a random rails app I have locally, here are the changes
1) for `bundle lock --update --bundler` (forcing Bundler to go through
dependency resolution)
```
==> memprof.after.txt <==
Total allocated: 2.98 MB (48307 objects)
Total retained: 1.21 MB (16507 objects)
==> memprof.before.txt <==
Total allocated: 12.62 MB (198506 objects)
Total retained: 1.30 MB (23133 objects)
```
2) for `bin/rails runner true` (essentially only bundler/setup)
```
==> memprof.after.txt <==
Total allocated: 59.50 kB (1017 objects)
Total retained: 25.08 kB (362 objects)
==> memprof.before.txt <==
Total allocated: 561.82 kB (8575 objects)
Total retained: 27.28 kB (513 objects)
```
https://github.com/rubygems/rubygems/commit/35c8ed2cb8
Diffstat (limited to 'compar.c')
0 files changed, 0 insertions, 0 deletions