Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by SuicideJunkie (Vicar)
on Sep 12, 2007 at 15:03 UTC ( [id://638588]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Challenge: CPU-optimized byte-wise or-equals (for a meter of beer)
in thread Challenge: CPU-optimized byte-wise or-equals (for a meter of beer)

It occurs to me that the in-place algorithms are not getting credited for their in-placeness, since they are all returning values and thus waste time making copies of the data.

Some of these can probably be sped up further just by not returning anything since they change $s1 directly as the OP suggested.

  • Comment on Re^4: Challenge: CPU-optimized byte-wise or-equals (for a meter of beer)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-20 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found