diff options
author | John Hawthorn <john@hawthorn.email> | 2019-09-11 09:02:22 -0700 |
---|---|---|
committer | Aaron Patterson <tenderlove@github.com> | 2019-09-11 14:23:11 -0700 |
commit | 21994b7fd686f263544fcac1616ecf3189fb78b3 (patch) | |
tree | 6c8f94bed0dc5c37a3bee7578043aff75f407392 /regexec.c | |
parent | 14e3731059246fcd093daa36fd0139d0287e633f (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 'regexec.c')
0 files changed, 0 insertions, 0 deletions