From: Robert Klemme Date: 2010-01-07T19:15:07+09:00 Subject: Re: Is ruby's regex slower? On 01/07/2010 11:02 AM, Jeff Peng wrote: > Robert Klemme: > >> Before you can make that judgement you need to find out the reason for >> slowness. A flawed design might be faster in C but fixing the design in >> Ruby might yield even better performance. > > I have sounded many guys talking about the flawed design when they > compare a languange to another. Yes a flowed design will make program > run much slower even it's by C. But the problem is, if a person make bad > desigin in C language, will he do it right in other language like Ruby? > I very doubt it. I'm sorry, I really don't understand how your reply relates to my statement. I responded to Marnen questioning whether Ruby was the right tool for a particular job. I wasn't talking about the language's design but about the design of the application. And I specifically suggested to fix the design but keep the language and not fix the design in a different language. Of course, if the design isn't flawed or the person doing the fix can't do it (in either language) then the whole procedure is deemed to fail. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/