P is for Practical | |
PerlMonks |
Re: Slow Regex - How to Optimizeby ikegami (Patriarch) |
on Aug 30, 2005 at 22:10 UTC ( [id://487968]=note: print w/replies, xml ) | Need Help?? |
Maybe using a generic regexp, then checking against %SUBS would be better? That eliminates a nested loop and multiple regexp compilations.
Note: I assumed %SUBS keys are subroutine names, not regexps.
In Section
Seekers of Perl Wisdom
|
|