摘要: 摘要:本文主要讲解如何使用perf观察程序在缓存利用方面的瓶颈,进而优化程序,提高cache命中率。主要讲解提高缓存利用的几种常用方法。 1.程序局部性 一个编写良好的计算机程序通常具有程序的局部性,它更倾向于引用最近引用过的数据项,或者这个数据周围的数据——前者是时间局部性,后者是空间局部性。现代 阅读全文
posted @ 2018-05-23 17:31 雪球球 阅读(583) 评论(0) 推荐(0) 编辑
摘要: Each cell of a table is set in a box, so that a change of font style (or whatever) only lasts to the end of the cell. If one has a many-celled table, 阅读全文
posted @ 2018-05-23 10:54 雪球球 阅读(883) 评论(0) 推荐(0) 编辑