[Israel.pm] run many regexes

Amir E. Aharoni amir.aharoni at gmail.com
Thu May 1 15:22:50 EEST 2008


2008/5/1 Pinkhas Nisanov <pinkhas at nisanov.com>:
> Hi,
>
>  I need run many ( hundreds ) regexes on some string.
>  Is there some way to optimize it and get better performance?

There's study: http://perldoc.perl.org/functions/study.html

You should run your own benchmarks to see if it actually helps.

Any other ideas?

-- 
Amir Elisha Aharoni

English - http://aharoni.wordpress.com
עברית - http://haharoni.wordpress.com

"We're living in pieces,
 I want to live in peace." - T. Moore


More information about the Perl mailing list