in reply to Re: How useful is the /o regexp modifier?
in thread How useful is the /o regexp modifier?
Thank you for the link! Having now read that, I've learned a few things.
Looking at my test results some more, I guess my anomalous case was one where matching took an extra long time, and the overheads got washed out of the results. Since I told Benchmark to run a fixed number of seconds rather than a fixed number of iterations, there were fewer iterations and less overhead resulted. That makes the "compiled once" qr constructs look about the same as the "compiled once" m//o.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How useful is the /o regexp modifier?
by JavaFan (Canon) on Feb 03, 2009 at 22:01 UTC | |
by hbm (Hermit) on Feb 03, 2009 at 22:31 UTC |