News for hackers. Stuff that matters.
Re:A 100LOC C impl of memset, that is faster than glibc's by boibombeiro on Saturday November 13, 2021 @03:27AM (#29208339)
This, and loop unrolling, are two commons misconception about uarch optimization.

https://lemire.me/blog/2012/05/31/data-alignment-for-speed-m...

Memory alignment is innocuous (others than often compromise code legibility).

Loop unrolling, on the other hand, can slow down the code. Specially in small loops.

See Agner uarch PDF.

There are no comments on this comment yet.