From: MenTaLguY Date: 2007-04-13T01:42:50+09:00 Subject: Re: Slow ruby regexes On Thu, 12 Apr 2007 19:55:09 +0900, Tim X wrote: > There is no point worrying about optimisation until you know there is a > performance issue. For all you know, using the ruby RE engine for your > task may fall well within your performance requirements. This is very, very true -- don't optimize until you measure. For the sake of the original poster, I want to underscore this point. Chances are the Ruby regexp engine is way more than adequate for his purposes. > The algorithm used by Perl et. al. may not be fast compared to the > alternative, but it is relatively simple. As important to performance is correctness. Perl's implementation is not very simple, however... -mental