Re:Fibers: An Elegant Windows API
by jstimpfle on Saturday March 30, 2019 @08:23AM
(#19529051)
> 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.
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.