Ç
罗晟
hi there, I just write a ruby program mirror to its python version to
feel the difference between the two fantastic language. here is the
ruby code. http://paste.pocoo.org/show/530185/. But I found it
twice slower(1.09 seconds to run) than its python counterpart(0.34
seconds to run). I think I made some mistake in writing this ruby
code. How can I make the ruby code faster? I'm using MRI 1.9.2, and
the file 0103.log is a 60000 lines file.
feel the difference between the two fantastic language. here is the
ruby code. http://paste.pocoo.org/show/530185/. But I found it
twice slower(1.09 seconds to run) than its python counterpart(0.34
seconds to run). I think I made some mistake in writing this ruby
code. How can I make the ruby code faster? I'm using MRI 1.9.2, and
the file 0103.log is a 60000 lines file.