Don’t Use Objects as Hash Keys in Ruby* Hashes have been optimized for symbols and strings in Ruby which technically are objects but this article is for revealing how much of a difference this makes when using other objects as hash keys. There are some cases where this makes a big difference but many times you won’t notice much of a difference. I wrote a little experiment to see how different kin
![Don’t Use Objects as Hash Keys in Ruby* | Daniel P. Clark](https://cdn-ak-scissors.b.st-hatena.com/image/square/cb5c0e583d8e5feddda51bc714dc89cd26cc21cf/height=288;version=1;width=512/https%3A%2F%2F6ftdan.com%2Fwp-content%2Fuploads%2F2017%2F05%2F8553113311_cebc102e29_z-600x315.jpg)