Posted in

Go结构体字段对齐暴雷:100秒用unsafe.Offsetof+go tool compile -S定位false sharing与cache line分裂

第一章:Go结构体字段对齐暴雷: … Go结构体字段对齐暴雷:100秒用unsafe.Offsetof+go tool compile -S定位false sharing与cache line分裂Read more

Posted in

从CPU缓存行(Cache Line)角度重读Go map:为什么bmap大小固定为8键?如何避免false sharing导致性能暴跌300%?

第一章:Go map的底层数据结 … 从CPU缓存行(Cache Line)角度重读Go map:为什么bmap大小固定为8键?如何避免false sharing导致性能暴跌300%?Read more