News for hackers. Stuff that matters.
Re:Optimising Memset and Memcpy by boulos on Sunday November 28, 2021 @01:53PM (#29371690)
Hi Nadav!

Seems like a lot of the benefit also comes from "Intel processors since < X > no longer care about aligned vs unaligned loads and stores" (so older code that spends effort lining this up doesn't benefit in the small cases up to 512 bytes).

Does that rationale still hold for larger blocks and/or hitting the cache lines awkwardly? Like make something where you'll have plenty of 64-byte copies which are offset enough that they are off alignment and pollute the neighboring cache line (probably most visible for memset).

There are no comments on this comment yet.