Ruby is too slow

Agreed,

I wouldn’t attempt this kind of work in Python, Perl, or a shell script either.

But by the same token, I wouldn’t want to do all my text processing jobs in C
or ASM. :slight_smile:

Christopher J. Meisenzahl CPS, CSTE
Senior Software Testing Consultant
Spherion
christopher.j.meisenzahl@citicorp.com

···

-----Original Message-----
From: bulatz [mailto:bulatz@integ.ru]
Sent: Thursday, November 21, 2002 1:33 AM
To: ruby-talk
Cc: bulatz
Subject: Re: Ruby is too slow

Hello MetalOne,

Thursday, November 21, 2002, 9:14:27 AM, you wrote:

I like Ruby, but it needs to be significantly faster. Anybody know
the main reason why Ruby is so much slower in this
example. Is it the
handling of numbers? Is there overhead calling yield for
every pixel?
Is the array lookup not O(1)?

it is because ruby interpreted language, while java and c++
are compiled to machine code. this sort of tasks definitely
not for ruby


Best regards,
Bulat mailto:bulatz@integ.ru