4 ms·
For performance, you really want to have cache locality, which means storing data in contiguous regions of memory, which is what an array does.
by brabel 3y ago
For performance, you really want to have cache locality, which means storing data in contiguous regions of memory, which is what an array does.
- cmrdporcupine 3y agoI mean, within 4k (or 1MB I guess if bigpages) pages, sure. But my understanding is that the OS & VMM & TLB aren't going to guarantee anything about physical address continuity -- even if the virtual addresses are contiguous -- are they?