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 contemplating the Monastery: (5)
As of 2016-06-30 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (388 votes). Check out past polls.