Design code to fit in CPU Cache?

前端 未结 7 1967
谎友^
谎友^ 2021-01-31 11:24

When writing simulations my buddy says he likes to try to write the program small enough to fit into cache. Does this have any real meaning? I understand that cache is faster

7条回答
  •  眼角桃花
    2021-01-31 11:49

    Here's a link to a really good paper on caches/memory optimization by Christer Ericsson (of God of War I/II/III fame). It's a couple of years old but it's still very relevant.

提交回复
热议问题