From: Roger Pack Date: 2009-07-11T01:36:15+09:00 Subject: Re: which project should I work on? Joel VanderWerf wrote: > Roger Pack wrote: >> def go >> if a == @_3 >> end >> end > > Is that really faster? Even so, what is the effect of many such > conversions (hence many ivars) on ivar lookup time and on object size? >> def go; '3'; end >> Benchmark.realtime { 1000000.times { go }} => 0.40625 >> @_3 = '3'.freeze >> def go2; @_3; end >> Benchmark.realtime { 1000000.times { go2 }} => 0.359375 So...just barely [plus saving on the GC a bit]. Also if anybody wants to vote for it, could hack on the redcar editor or arcadia in the *hopes* of someday creating an editor equal to the great TextMate [except free, open source, and cross platform] :) Just +1 it here :) =r -- Posted via http://www.ruby-forum.com/.