diff options
| author | Samuel Giddins <segiddins@segiddins.me> | 2023-09-18 18:51:15 -0700 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-12-11 23:14:58 +0000 |
| commit | 505715ddf17e004d184c0b71afb40a31e2e8c98e (patch) | |
| tree | 483d4f9f86cf2628d822e4c0b6ce0c76e478524a /include/ruby/internal | |
| parent | 4a94ce8569c9399bd286d943ff35f6f3a25ed1b6 (diff) | |
[rubygems/rubygems] Fewer allocations in gem installation
For now, on a small rails app I have hanging around:
```
==> memprof.after.txt <==
Total allocated: 872.51 MB (465330 objects)
Total retained: 40.48 kB (326 objects)
==> memprof.before.txt <==
Total allocated: 890.79 MB (1494026 objects)
Total retained: 40.40 kB (328 objects)
```
Not a huge difference in memory usage, but it's a drastic improvement
in total number of allocations.
Additionally, this will pay huge dividends once
https://github.com/ruby/zlib/pull/61 is merged, as it will allow us to
completely avoid allocations in the repeated calls to readpartial,
which currently accounts for most of the memory usage shown above.
https://github.com/rubygems/rubygems/commit/f78d45d927
Diffstat (limited to 'include/ruby/internal')
0 files changed, 0 insertions, 0 deletions
