Posted in

Go语言内存对齐与CPU缓存行优化(unsafe.Offsetof+pprof CPU profile):调整struct字段顺序,GC压力直降41%!

第一章:Go语言内存对齐与CPU … Go语言内存对齐与CPU缓存行优化(unsafe.Offsetof+pprof CPU profile):调整struct字段顺序,GC压力直降41%!Read more

Posted in

Go语言数据结构内存对齐实战:struct字段重排让cache line命中率提升至99.3%,附go tool compile -S分析

第一章:Go语言数据结构内存对齐 … Go语言数据结构内存对齐实战:struct字段重排让cache line命中率提升至99.3%,附go tool compile -S分析Read more