summaryrefslogtreecommitdiff
path: root/include/ruby/assert.h
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2022-07-20 15:09:20 -0700
committerJeremy Evans <code@jeremyevans.net>2022-08-09 22:19:46 -0700
commit9363b0423a0269272eff2e243d4b55bc8d135430 (patch)
treeaee5131097d7b12dd4e811acfd9cc0402e20f3f8 /include/ruby/assert.h
parentfc4b4f2e8db3d68b80b9c7580c40a0165736006c (diff)
Optimize duparray/expandarray -> putobject/expandarray
There's no point in making a copy of an array just to expand it. Saves an unnecessary array allocation in the multiple assignment case, with a 35-84% improvement in affected cases in benchmark/masgn.yml.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6158
Diffstat (limited to 'include/ruby/assert.h')
0 files changed, 0 insertions, 0 deletions