3 comments

[ 4.3 ms ] story [ 12.4 ms ] thread
That's a pretty nice 3x speedup at 128 byte copy size.

Remarkable that the execution time is absolutely identical for anything from 0 to 128 bytes.

And the code is 1/24th the size.

I've reduced the time for lengths from 0 to 64 bytes from 46.8 ns to 30.9 ns without adversely affecting longer lengths. I also knocked 2 bytes off the code size, from 26 to 24 bytes.