ruby/lib/rubygems/package
Samuel Giddins 505715ddf1 [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.

f78d45d927
2023-12-11 23:14:58 +00:00
..
tar_reader [rubygems/rubygems] Raise Gem::Package::FormatError on EOF, indicating corrupt gem 2023-08-17 23:16:57 +00:00
digest_io.rb util/rubocop -A --only Layout/EmptyLineAfterMagicComment 2023-03-23 17:18:49 +09:00
file_source.rb util/rubocop -A --only Layout/EmptyLineAfterMagicComment 2023-03-23 17:18:49 +09:00
io_source.rb util/rubocop -A --only Layout/EmptyLineAfterMagicComment 2023-03-23 17:18:49 +09:00
old.rb [rubygems/rubygems] Use modern hashes consistently 2023-12-07 22:29:33 +00:00
source.rb util/rubocop -A --only Layout/EmptyLineAfterMagicComment 2023-03-23 17:18:49 +09:00
tar_header.rb [rubygems/rubygems] Fewer allocations in gem installation 2023-12-11 23:14:58 +00:00
tar_reader.rb [rubygems/rubygems] Ignore non-tar format .gem files during search 2023-10-23 19:52:22 +00:00
tar_writer.rb [rubygems/rubygems] Use modern hashes consistently 2023-12-07 22:29:33 +00:00