No such thing as a small change | |
PerlMonks |
Re: Producing a list of offsets efficientlyby tlm (Prior) |
on May 28, 2005 at 20:31 UTC ( [id://461398]=note: print w/replies, xml ) | Need Help?? |
index beats everything else I have tried, including various regexps. The fastest I have found is
E.g.:
Updates: Way too many. Reversed my first reversal (I'd inadvertently introduced a bug in wregex that resulted in only one match taking place, which made it look faster). Minor tweaks to wregex (eliminated the unneccessary /g, and removed a stray 0; in the (?{}) code. the lowliest monk
In Section
Seekers of Perl Wisdom
|
|