Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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?

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 cooling their heels in the Monastery: (7)
As of 2016-09-28 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (540 votes). Check out past polls.