Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Challenge: CPU-optimized byte-wise or-equals (for a meter of beer)

by avar (Beadle)
on Sep 12, 2007 at 14:29 UTC ( [id://638567]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
                    Rate        split1       substr1         subst subst_i
    +nplace
    split1        2.93/s            --          -72%         -100%        
    + -100%
    ...
    ok 2
    ok 3
    1..3
    
  2. or download this
    sub subst_inplace
    {
    ...
        use bytes;
        $$s1 =~ s/(\0)/substr $s2, $+[0]-1, 1/eg;
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found