Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Regexp optimization - /o option better than precompiled regexp?

by Anonymous Monk
on Jun 28, 2010 at 05:00 UTC ( #846818=note: print w/ replies, xml ) Need Help??


in reply to Re: Regexp optimization - /o option better than precompiled regexp?
in thread Regexp optimization - /o option better than precompiled regexp?

"The /o option means that the regexp is interpolated and compiled only once for the complete life of the program."

But why then is main::CORE:regcomp still being called on every iteration, just as in the cases without /o?


Comment on Re^2: Regexp optimization - /o option better than precompiled regexp?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://846818]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (17)
As of 2014-10-20 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (88 votes), past polls