Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: serious regex performance degradation after upgrade to perl 5.8 from 5.6

by mce (Curate)
on Jan 21, 2004 at 13:05 UTC ( [id://322862]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl5.8.0 or #!/usr/local/bin/perl5.6.1
    
    ...
    sub test {
       $main::x =~ s/(.*?)I/$1/isge;
       }
    
  2. or download this
    Perl 5.8.0
    timethis 1000: 48 wallclock secs (46.76 usr +  0.02 sys = 46.78 CPU) @
    + 21.38/s (n=1000) 
    
    Perl 5.6.1
    timethis 1000:  1 wallclock secs ( 0.70 usr +  0.00 sys =  0.70 CPU) @
    + 1428.57/s (n=1000)
    
  3. or download this
      Setting an EVAL scope, savestack=12
      24 <opqrstuvwx> <yz>    |  1:  OPEN1
    ...
      Setting an EVAL scope, savestack=12
                                failed...
    Match failed
    
  4. or download this
                               SANY can match 1 times out of 1...
      23 <opqrstuvw> <xyz>    |  6:    CLOSE1
    ...
                               SANY can match 0 times out of 1...
                                failed...
    Match failed
    

Log In?
Username:
Password:

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

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

    No recent polls found