Re:Optimising Memset and Memcpy
by WalterBright on Sunday November 28, 2021 @01:09PM
(#29371221)
A good heuristic is simply minimize the number of instructions.
[ Parent
| on HN ]
I doubt it'd be an issue for memcpy but minimizing the size of a loop body can lead to very counterintuitive speedups now processors have LSDs (loop stream detectors).