aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
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 /parse.y
parent14e3731059246fcd093daa36fd0139d0287e633f (diff)
downloadruby-21994b7fd686f263544fcac1616ecf3189fb78b3.tar.gz
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.
Diffstat (limited to 'parse.y')
0 files changed, 0 insertions, 0 deletions