3 ms·
> it might be 100 cache lines for those 100 pointers No, the usual recommendation is that you should split your structures into smaller structures such that ea
by jstimpfle 8y ago
> it might be 100 cache lines for those 100 pointers
No, the usual recommendation is that you should split your structures into smaller structures such that each contains only fields that are likely to be accessed together. In other words, you should err on the side of SOA (parallel arrays) rather than AOS.
That's because the unused field apply pressure on the cache.