summaryrefslogtreecommitdiff
path: root/ruby_assert.h
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2023-09-20 21:32:09 -0700
committergit <svn-admin@ruby-lang.org>2023-09-21 07:40:58 +0000
commit0a423d4c4e84bc024d5dabe86227c1f0b509a898 (patch)
tree3cd3c20b4a4716e7145777371df2b4fc981ede07 /ruby_assert.h
parenta49d17a080c6ebbd1d6dc9ad83b0a46c610c387b (diff)
[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 https://github.com/rubygems/rubygems/commit/7d2ee51402
Diffstat (limited to 'ruby_assert.h')
0 files changed, 0 insertions, 0 deletions