3 ms·
On a related node, this page also has an interesting visualisation of the effects of cache misses on program performance: http://igoro.com/archive/gallery-of-pr
by xtacy 15y ago
On a related node, this page also has an interesting visualisation of the effects of cache misses on program performance: http://igoro.com/archive/gallery-of-processor-cache-effects http://igoro.com/archive/gallery-of-processor-cache-effects
- ChuckMcM 15y agoI liked that too. That is the dominant factor here. In the first example the four arrays blow away 4 lines of the cache none of them stay resident, in the second example two of the four arrays stay in cache during the copy. The effects can be quite large. At Network Appliance there is a guy there who understands cache effects inside and out. File systems it turns our are particularly sensitive to them because 'pointer chasing' (the essence of file system traversal) is often a very cache expensive event.