RubyFlow The Ruby and Rails community linklog

Objects as Ruby Hash Keys

One often-overlooked feature of Ruby’s hashes is that you can use any object as a hash key, not just strings and symbols. In this post we examine how Optcarrot, the Ruby NES emulator, uses this feature to optimize its mapped memory implementation. - http://blog.honeybadger.io/objects-as-ruby-hash-keys/

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in