Re:Why is strlen so complex in C?
by BeeOnRope on Tuesday August 27, 2019 @11:44AM
(#20810849)
Yes, I have benchmarked it in the past which is where I got the 4-6x figure from. Maybe it's worth a revisit, but unless the compiler is doing something special with the byte version, I would be surprised if the speedup was much less.
You may have to unroll both to get max speed.
If you could share your benchmark I would be interested to look at it.
You may have to unroll both to get max speed.
If you could share your benchmark I would be interested to look at it.