46

C++性能榨汁机之局部性原理 - I'm Root lee !

 6 years ago
source link: http://irootlee.com/juicer_locality/?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前言《CSAPP》讲到了局部性原理:一个编写良好的计算机程序常常具有良好的局部性(loacality)。也就是说,它们倾向于引用邻近于其他最近引用过的数据项,或者最近引用过的数据项本身。这种倾向性,被称为局部性原理(principle of locality),是一个持久的概念,对硬件和软件系统的设计和性能都有着极大的影响。局部性原理代码示例为了让大家更加直观的感受到局部性原理对我们程序性能的影

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK