Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Avoiding regex backtracking

by japhy (Canon)
on Mar 05, 2002 at 17:07 UTC ( [id://149436]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Benchmark 'cmpthese';
    my $str = "this is the best end";
    cmpthese(-5, {
    ...
             Rate extra plain
    extra 12019/s    --  -76%
    plain 49616/s  313%    --
    
  2. or download this
    use Benchmark 'cmpthese';
    my $str = "this is the best end";
    cmpthese(-5, {
    ...
    extra 11712/s    --  -35%  -76%
    uroll 17986/s   54%    --  -64%
    plain 49329/s  321%  174%    --
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://149436]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-23 19:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found