Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2014-07-25 18:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (174 votes), past polls