in reply to Re^2: 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)

Drop the unneeded capturing parens for a likely boost in speed. Someone should add "use bytes" to ikegami's tr/// version also.

- tye        

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

Replies are listed 'Best First'.
Re^4: Challenge: CPU-optimized byte-wise or-equals (for a meter of beer) (copy penalty)
by avar (Beadle) on Sep 12, 2007 at 21:34 UTC
    You're right. I erroneously thought the capture was needed for $-[0] to work. But of course that's not the case.