Skip to content

Cache line

stackoverflow How do cache lines work?

TODO

在阅读 stackoverflow Purpose of memory alignment # A 时,其中的"Bonus: Caches"段中提及了cache line,其中提及了这些内容:

Another alignment-for-performance that I alluded to previously is alignment on cache lines which are (for example, on some CPUs) 64B.

For more info on how much performance can be gained by leveraging caches, take a look at Gallery of Processor Cache Effects; from this question on cache-line sizes

igoro Gallery of Processor Cache Effects

stackoverflow Line size of L1 and L2 caches