Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Faster regex to split a string into runs of similar characters?

by BrowserUk (Patriarch)
on Nov 21, 2016 at 14:01 UTC ( [id://1176249]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\test>\perl22\bin\perl 1176081.pl -WIDTH=1000 -HEIGHT=1000
    yr() took 2.551594
    ...
    buk2() took 0.681494
    buk3() took 0.167000
    dave() took 0.127978
    
  2. or download this
        while( substr( $$str, $y * $WIDTH, $WIDTH ) =~ m[((.)\2*)]mg ) {
        ...
    
  3. or download this
            my $ref = \substr( $$str, $y * $WIDTH, $WIDTH );
            while( $$ref  =~ m[((.)\2*)]mg ) {
    

Log In?
Username:
Password:

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

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

    No recent polls found