Re: [jruby-dev] attr performance

2007-08-26 Thread Charles Oliver Nutter
Thomas E Enebo wrote: Did you try it without intern'ing? I am wondering if most of this is from being a fast method or not? Majority is probably from being "fast". The interning is more for consistency. - Charlie - To unsu

Re: [jruby-dev] attr performance

2007-08-26 Thread Thomas E Enebo
Did you try it without intern'ing? I am wondering if most of this is from being a fast method or not? -Tom On 8/25/07, Charles Oliver Nutter <[EMAIL PROTECTED]> wrote: > Two changes in attached patch: > > - attr accessors should store interned name of variable > - attr accessor methods can be "f

[jruby-dev] attr performance

2007-08-25 Thread Charles Oliver Nutter
Two changes in attached patch: - attr accessors should store interned name of variable - attr accessor methods can be "fast" Substantial improvement (this is with the standard ivars hashmap): BEFORE: 100k loop of 100 attr accesses and assign to local; one ivar 2.695000 0.00 2.695000