Posted in

Go结构体字段对齐实战手册:如何通过struct{}占位将内存占用压缩37%,附go tool compile -S分析法

第一章:Go结构体字段对齐实战手 … Go结构体字段对齐实战手册:如何通过struct{}占位将内存占用压缩37%,附go tool compile -S分析法Read more

Posted in

Go结构体字段对齐的内存黑洞:一个int64字段位置变动,让单实例内存占用暴增3.2GB?附go tool compile -S内存布局分析法

第一章:Go结构体字段对齐的内存 … Go结构体字段对齐的内存黑洞:一个int64字段位置变动,让单实例内存占用暴增3.2GB?附go tool compile -S内存布局分析法Read more

Posted in

Go属性定义性能陷阱曝光:为什么你的struct多占37%内存?——基于go tool compile -S的汇编级实证分析

第一章:Go属性定义性能陷阱曝光 … Go属性定义性能陷阱曝光:为什么你的struct多占37%内存?——基于go tool compile -S的汇编级实证分析Read more