ruby/lib/rubygems/safe_marshal/visitors
Samuel Giddins 0a423d4c4e [rubygems/rubygems] Aggressively optimize allocations in SafeMarshal
Reduces allocations in a bundle install --full-index by an order of magnitude

Main wins are (a) getting rid of exessive string allocations for exception message stack

(b) Avoiding hash allocations caused by kwargs for #initialize

(c) avoid using unpack to do bit math, its easy enough to do by hand

(d) special case the most common elements so they can be read without an allocation

(e) avoid string allocations every time a symbol->string lookup is done by using symbol#name

7d2ee51402
2023-09-21 07:40:58 +00:00
..
stream_printer.rb [rubygems/rubygems] Verified working on mri/jruby/truffleruby with specs on rubygems.org 2023-09-20 02:03:00 +00:00
to_ruby.rb [rubygems/rubygems] Aggressively optimize allocations in SafeMarshal 2023-09-21 07:40:58 +00:00
visitor.rb