logoalt Hacker News

dataflow • yesterday at 10:14 PM • 1 reply • view on HN

> I think cache friendly code also tends to be reason about friendly and debugger friendly.

Not sure what examples you have in mind, but the very first things I think of when I hear cache friendly code are cache-blocking and cache-oblivious algorithms, which are quite the opposite of that. See also B-trees vs. binary search trees, etc.


Replies

bunderbunder • today at 1:23 AM

I usually start with simpler things like paying attention to locality of reference and adjusting data so that it takes up less space in memory.