From: jcb@... (MetalOne) Date: 2002-11-22T06:56:02+09:00 Subject: Re: Ruby is too slow > > > size.times { |i| > > image[i] = lookup[image[i]] > > } > > One function call per pixel for the loop and 3 function calls for the > lookups. > 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.