Marcin Mielżyński wrote:
Charles Oliver Nutter pisze:
Here's a comparison of a purely hash-based ivar map versus one that just
does a linear search.
For objects with only a few instance variables, the linear search
mechanism is going to be faster. Perhaps what we need is a map that's
optimized so that small sizes are linear searches and after a certain
threshold it switches to hash-based?
Did the hash map benchmark use already interned strings for ivar names ?
It was just the ivar benchmark but with RubyObject using a linear-search
map instead of a hash map. So presumably the majority of keys were
already interned.
- Charlie
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email