Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Unefficient Regexp 'Matching this or that'

by pelagic (Priest)
on May 19, 2010 at 09:33 UTC ( #840648=note: print w/replies, xml ) Need Help??


in reply to Re: Unefficient Regexp 'Matching this or that'
in thread Unefficient Regexp 'Matching this or that'

Here goes my test for your suggestion:
Benchmark: timing 3 iterations of 20.two_string, 30.two_string_lookahe +ad... 20.two_string: 236 wallclock secs (234.31 usr + 1.62 sys = 235.93 CPU +) @ 0.01/s (n=3) 30.two_string_lookahead: 178 wallclock secs (176.23 usr + 1.52 sys = +177.75 CPU) @ 0.02/s (n=3)
So it's better, but still not linear ...

pelagic

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://840648]
help
Chatterbox?
[thezip]: That's awesome. I bet you feel totally rejuvenated and ready for the next thing.
[stevieb]: A couple of years ago I went to Curacao on a business trip which is a few parallels south of Canary Islands, but one thing I liked was it was 90 degrees at all times consistently. Much different experience than living in Canada :)

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2017-02-23 17:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (349 votes). Check out past polls.