logoalt Hacker News

immibis2 • yesterday at 9:38 PM • 2 replies • view on HN

If it has a pittance of cache, then mechanical sympathy might not mean cache-friendliness. Linked lists were mechanically sympathetic on uncached systems - it cost the same to access any byte of memory, so you might as well go directly to the one you wanted.


Replies

boricj • yesterday at 10:11 PM

Looking at the specs: 32 KiB of L1, 256 KiB of L2, in-order and partial dual-issue.

That's the least forgiving kind of chip when it comes to performance: fast enough to outpace main memory by two orders of magnitude, yet the slightest speed bump (branch misprediction, cache miss) stalls it without any ability to reorder around it.

brcmthrowaway • yesterday at 9:44 PM

What is a cache friendly version of linked lists?

➕ show 2 replies