ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Ruby's Present and Future
Subject:   Speed
Date:   2003-12-23 16:53:32
From:   anonymous2
Response to: Speed

ruby is slower than python and perl. Not so much in latest versions, if you use it with some intelligence.
For example, even if you look at Doug's shootout you'll se stuff like this:
ary=Array.new
z=0
for i in ary
i=z+=1
end


while you could just initialize the array with this stuff with Array.new {auto inc block}.


BTW, I don't really care about ruby slowness, or python's for that matter. They are "fast enough" for my needs, and the C api are just a charm if I need extension. Not that this should fit for your needs, anyway..