summaryrefslogtreecommitdiff
path: root/zjit/src/codegen.rs
diff options
context:
space:
mode:
authorJeremy Evans <[email protected]>2025-04-19 23:47:36 -0700
committergit <[email protected]>2025-04-22 15:21:07 +0000
commit3ce5d89c206a54cbf32032674c9edf6f649e95f6 (patch)
treea4eb823675030dd3b74e9aff30d76bc3aedc6f17 /zjit/src/codegen.rs
parent1628bbb18a2402984f7a798c9ca200a75c914a8d (diff)
[ruby/pp] Avoid an array allocation per element in list passed to seplist
The array allocation was because the keyword splat expression is not recognized as safe by the compiler. Also avoid unnecessary >= method call per element. This uses a private constant to avoid unnecessary work at runtime. I assume the only reason this code is needed is because v may end with a ruby2_keywords hash that we do not want to treat as keywords. This issue was found by the performance warning in Ruby feature 21274. https://github.com/ruby/pp/commit/3bf6df0e5c
Diffstat (limited to 'zjit/src/codegen.rs')
0 files changed, 0 insertions, 0 deletions