On Oct 11, 2007, at 9:30 PM, Marek Kasperkiewicz wrote: > If i try this > puts (1..10).max > it runs fine. > If i try this > puts (1..100000000).max > It is extremely slow. Instead of using straight math max= 100000000-1 > it uses some king of interator to find out the value of max. > What is the catch here? I'm afraid that's the way the Enumerable mixin works. There is an old saying: if hitting yourself on the head with hammer hurts, just stop. I think that applies in this case. Regards, Morton