From: anaray anaray Date: 2012-06-30T02:13:10+09:00 Subject: ruby performance Hi, I have snippet from my project, and this iteration is performing very very badly compared to same implementation in Java Java : Time Elapsed in milliseconds: 8109 ms. Ruby : Time Elapsed in Seconds: 132.28125 sec. It a huge difference, Am i missing something here, is there any particular best practices. I am trying to implement Ruby for a particular project, where it needs to read/process huge arrays etc Please guide me. input = "ababaa" * 10000 suffix_array = input.split(//) suffix_array_len = suffix_array.size for i in 1..suffix_array_len-1 do total=0 for j in i..suffix_array_len-1 do end end -- Posted via http://www.ruby-forum.com/.