Kamil Witecki is an experienced Architect and Chief Engineer from Nokia. He can program a plethora of languages. Chooses to use C++ and Lua mainly. Has so many interests that can hardly focus on any. Loves literature and abstract humor.
CPU cache helps to reduce memory access latency. To benefit from it CPU has to predict what data to read ahead to keep instruction and data cache filled with relevant information. This is done behind the scene and we all benefit from it, even without knowing. To make a profit of cache we will discuss the basics of CPU and see how a programmer can measure and optimize cache usage.