From: Francis Cianfrocca Date: 2006-09-16T01:36:30+09:00 Subject: Re: Benchmark for Ruby ------=_Part_19179_17266854.1158338139447 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/15/06, Srinivas JONNALAGADDA wrote: > > x = case :asdf > when :a > 'a' You have a literal Symbol in the case statement. Try it with a variable that refers to an object of type Symbol. I got nearly a three percent speed improvement by changing this out, and it was only over a few hundred thousand iterations, not ten million. I haven't looked at the implementation (yet) so I have no clue why this behaves as it does. ------=_Part_19179_17266854.1158338139447--