2020-10-22 与程序员相关的CPU缓存知识

来源 酷壳 https://coolshell.cn/articles/20793.html 架构 三级cache: cache line cache更新的block,最小单位,不是一个字节一个字节的更新的 N way cache hash + 数组查找cache, N就是代表hash table的大小 总结 1,多访问本地变量 2,全局共享和lock有性能影响
相关文章
相关标签/搜索