summaryrefslogtreecommitdiff
path: root/vm_backtrace.c
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2019-09-11 09:02:22 -0700
committerAaron Patterson <tenderlove@github.com>2019-09-11 14:23:11 -0700
commit21994b7fd686f263544fcac1616ecf3189fb78b3 (patch)
tree6c8f94bed0dc5c37a3bee7578043aff75f407392 /vm_backtrace.c
parent14e3731059246fcd093daa36fd0139d0287e633f (diff)
Avoid rehashing keys in transform_values
Previously, calling transform_values would call rb_hash_aset for each key, needing to rehash it and look up its location. Instead, we can use rb_hash_stlike_foreach_with_replace to replace the values as we iterate without rehashing the keys.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2452
Diffstat (limited to 'vm_backtrace.c')
0 files changed, 0 insertions, 0 deletions