|
|
| more useful options | |
| PerlMonks |
Re: Perl regexp matching is slow??by dragonchild (Archbishop) |
| on Jan 30, 2007 at 04:17 UTC ( #597266=note: print w/ replies, xml ) | Need Help?? |
|
First off, algorithms can always be improved. There is generally a compromise between pure processing speed and many other considerations, such as RAM usage and code maintainability. Perl generally sacrifices RAM for speed, but generally considers speed and maintainability to be about equal (knocks on the codebase aside). Second, you must understand that Perl set the bar for regexes when P5 was released over 10 years ago. There's a reason why the primary C library for regexes is called "pcre", or "Perl-compatible regex engine". In that time, a lot of theoretical work has been done. Not all that work has been put into the current engine, for many reasons such as:
And, lastly - fast is as fast does. Perl is "fast enough" for me and my clients, and that includes the regex engine. I'm not a baremetal speed freak. My criteria for good software:
In Section
Meditations
|
|
||||||||||||||||||||||||||||