Re: [jruby-dev] ivar performance

2007-08-26 Thread Charles Oliver Nutter
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

Re: [jruby-dev] ivar performance

2007-08-26 Thread Marcin Mielżyński
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 li

[jruby-dev] ivar performance

2007-08-25 Thread Charles Oliver Nutter
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 cert