From: ptkwt@...1.aracnet.com (Phil Tomson) Date: 2003-01-14T04:32:20+09:00 Subject: Re: Ruby: politics & performance [long] In article <1042469883.310827.25295.nullmailer@picachu.netlab.jp>, Yukihiro Matsumoto wrote: >Hi, > >In message "Re: Ruby: politics & performance [long]" > on 03/01/13, ts writes: > >| Not the second word, the second element. For example actually you have >| >| last = list; >| while (last->nd_next) { >| last = last->nd_next; >| } >| >| Try to replace it with >| >| if (list->nd_next) { >| last = list->nd_next->nd_end; >| } >| else { >| last = list; >| } >| >| i.e. the first element give the size, the second give the end. >| >| You just need to adapt one macro in eval.c to make it work (if I'm right) > >This is interesting. I will try this in 1.8.0. > > matz. > Cool. That's the good thing about 'corner cases' like the application the original poster was trying to speed up - they can help us speed up Ruby (and specifically the parser in this case). Phil -- "Or perhaps the truth is less interesting than the facts?" Amy Weiss (accusing theregister.co.uk of engaging in 'tabloid journalism') Senior VP, Communications Recording Industry Association of America