in reply to Performance penalty of using qr//
If it's just several times then your results may be explained by the overhead to initialize qr.
Another guess is to try $s =~ /$re/; instead of $s =~ $re; (which is admittedly counterintuitive)
Can't test, sorry.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Performance penalty of using qr//
by Athanasius (Archbishop) on Dec 21, 2017 at 06:44 UTC | |
by LanX (Saint) on Dec 21, 2017 at 08:02 UTC |