3 ms·
That agrees with my experience: everything within a cacheline is just as fast, it's only accesses which cross one that are slower; and unless those odd ones are
by userbinator 8y ago
That agrees with my experience: everything within a cacheline is just as fast, it's only accesses which cross one that are slower; and unless those odd ones are the only accesses that occur, it's better for memory bandwidth to pack everything together.
which particularly x86 is very good at
That's largely because x86 never had aligned instructions, and whose sizes are simply multiples of bytes, so quite early in its development it already ahd efficient ways of extracting the needed set of bytes from memory regardless of alignment.
- mpweiher 8y ago> everything within a cacheline is just as fast, Yep. Which makes you wonder if maybe this sort of thing should be surfaced somehow.