Commit graph

3 commits

Author SHA1 Message Date
Hiroshi SHIBATA
5c4978c11c [rubygems/rubygems] Handle empty array
7c0afdd9af
2023-10-24 16:31:43 +00:00
Samuel Giddins
c423d6e0e4 [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

e64debb6ae
2023-09-15 17:54:01 +00:00
Hiroshi SHIBATA
40d1a00040 [rubygems/rubygems] Copy YAMLSerializer from Bundler
6a97346708
2023-04-19 06:56:23 +00:00