Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Re: Performance Tuning: Searching Long-Sequence Permutationsby chip (Curate) |
on Jun 27, 2003 at 02:40 UTC ( [id://269451]=note: print w/replies, xml ) | Need Help?? |
WRT interpolation in /$pat/g: Actually it is fast. When the entire pattern consists of an interpolated qr reference, no recompilation takes place at runtime, so the speed gain of precompilation is not lost. You can observe this with a combination of perl -Dts and reading the source code of pp_regcomp.
WRT the missing //g: It's a fair cop, but society's to blame. :-) -- Chip Salzenberg, Free-Floating Agent of Chaos
In Section
Seekers of Perl Wisdom
|
|