Posted in

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

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

Posted in

Go struct字段顺序如何影响堆内存占用?实测17种排列组合,最大节省38.6% alloc_objects(附自动化重排工具)

第一章:Go struct字段顺 … Go struct字段顺序如何影响堆内存占用?实测17种排列组合,最大节省38.6% alloc_objects(附自动化重排工具)Read more