![]() |
|
P is for Practical | |
PerlMonks |
Re: experiencing slowness due to matching algorithmby hippo (Bishop) |
on Jan 09, 2023 at 09:53 UTC ( #11149447=note: print w/replies, xml ) | Need Help?? |
I though regex here will be the fastest. I have no idea why you thought that. Perhaps you could explain your reasoning? An exact string match and an index match should beat 2 dynamic regexen into a cocked hat for speed.
Try profiling that and see if it improves matters for you. 🦛
In Section
Seekers of Perl Wisdom
|
|