May 13, 2017 by Daniel P. Clark

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…

Continue Reading »