From: Michel Boaventura Date: 2007-11-09T05:06:03+09:00 Subject: Problem with arrays ------=_Part_14190_5672033.1194552342717 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I'm coding a program which implements the levenshtein distance between two strings. It works, but very slowly. I discover that the slowest line in the code is: current[j] = m where current is an array of Fixnum, and m is a Fixnum. If i comment this line the program runs about 50 times faster. If I change it to any other thing, like "current[j] = 1" it still running fast. I can't understand why "current[j] = 1" is faster than "current[j] = m". Thanks, Michel Boaventura ------=_Part_14190_5672033.1194552342717--