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?? |
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.
In Section
Seekers of Perl Wisdom
|
|