[Mpls-pm] Interesting RegEx Problem
Ian Malpass
ian at indecorous.com
Mon Sep 19 13:56:53 PDT 2005
On Mon, 19 Sep 2005, Nathan Graham wrote:
> If you have lots of patterns and only a few strings, then using the
> study() function might speed things up.
Oh yes, I'd forgotten about study(). Note that the documentaton is
equivocal about the performance benefits of study()[0], since there is
overhead in studying a string, and no guarantee of it giving you anything
in return.
Anyone want to do a lightning talk on profiling and benchmarking in perl?
Ian
[0] "...you probably want to compare run times with and without it to see
which runs faster" - perldoc -f study
-
---------------------------------------------------------------------------
The soul would have no rainbows if the eyes held no tears.
Ian Malpass
<ian at indecorous.com>
More information about the Mpls-pm
mailing list