Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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: (16)
As of 2015-07-31 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (279 votes), past polls