diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2024-01-29 16:31:15 -0800 |
|---|---|---|
| committer | Jeremy Evans <code@jeremyevans.net> | 2024-01-30 08:47:48 -0800 |
| commit | 332e0db675cd35b60ea82acbc0710d9062c0c92a (patch) | |
| tree | 2b4a8092a8ea423c754fed012a5959217f4efb56 /test/ruby/test_thread_queue.rb | |
| parent | ba06a8259a3f21c9cbee0f4f55b82c016a45a3b9 (diff) | |
Avoid unnecessary array allocation for ARGSCAT with LIST body
Previously, this would use newarray followed by concattoarray.
This now uses pushtoarray instead, avoiding the unnecessary
array allocation.
This is implemented by making compile_array take a first_chunk
argument, passing in 1 in the normal array case, and 0 in the
ARGSCAT with LIST body case.
Diffstat (limited to 'test/ruby/test_thread_queue.rb')
0 files changed, 0 insertions, 0 deletions
