From: Isak Johnsson Date: 2002-11-22T19:05:47+09:00 Subject: Re: Ruby is too slow > hmmm. > Actually, I tried replacing the iterator with a while loop. > i = 0 > while i < size > image[i] = lookup[image[i]] > i += 1 > end > > The while loop version was slower yet. > A function call to index an array? Yikes! Well, that might explain it. I've read that using the Array's at function is faster than operator [] because it doesn't support ranges. image.at(i) = ... Isak