Project

General

Profile

« Previous | Next » 

Revision 21994b7f

Added by jhawthorn (John Hawthorn) about 6 years ago

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.