diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2024-01-25 12:25:42 -0800 |
|---|---|---|
| committer | Jeremy Evans <code@jeremyevans.net> | 2024-03-01 07:10:25 -0800 |
| commit | 73371450c31ed6341858c6520b3cd2d3d451806e (patch) | |
| tree | 42ad41c59265e63e936d214db6df62ce78530a10 /test/ruby | |
| parent | 32c58753afa763c5be64684876ee4e6aed550ad7 (diff) | |
Avoid 1-2 array allocations for zsuper calls with post arguments
These previously resulted in 2 array allocations, one for newarray
and one for concatarray. This replaces newarray and concatarray
with pushtoarray, and changes splatarray false to splatarray true,
which reduces it to 1 array allocation, in splatarray true.
This also sets VM_CALL_ARGS_SPLAT_MUT, so if the super method
accepts a positional splat, this will avoid an additional array
allocation on the callee side.
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions
