today i've wrote short article summarizing and showing code examples of how do modern CPUs' caches affect overall performance and how to use it effectively – cache usage effects on modern CPUs. it is based on very interesting article by Ulrich Drepper, What Every Programmer Should Know About Memory. you can be surprised how much CPU cache and its proper (though mostly implicit) usage affects speed of modern CPUs… :)