when Hash#compare_by_identity is called, it should not copy the keys #1664
It seems like we're all copying keys when inserting a value with a string key. I guess this is to avoid people mutating the string after inserting into a hash, and forgot to rehash the hash.
However, MRI would not copy the strings after calling
Note that MRI is not copying the data, therefore even if we insert twice, it still maps to the same object. Both JRuby and Rubinius are still copying here, defeating the purpose of
Would also file this for Rubinius.
The text was updated successfully, but these errors were encountered: