Posted in

Go结构体字段对齐陷阱(内存浪费高达37.2%):用unsafe.Offsetof和go tool compile -S验证你的struct

第一章:Go结构体字段对齐陷阱( … Go结构体字段对齐陷阱(内存浪费高达37.2%):用unsafe.Offsetof和go tool compile -S验证你的structRead more

Posted in

Go结构体字段对齐的隐藏开销:如何通过go tool compile -S发现12%内存浪费并精准修复?

第一章:Go结构体字段对齐的隐藏 … Go结构体字段对齐的隐藏开销:如何通过go tool compile -S发现12%内存浪费并精准修复?Read more

Posted in

【Golang内存分析神技】:不用pprof,仅靠runtime.ReadMemStats+go tool trace火焰图定位结构体字段对齐导致的47%内存浪费

第一章:Golang内存分析神技 … 【Golang内存分析神技】:不用pprof,仅靠runtime.ReadMemStats+go tool trace火焰图定位结构体字段对齐导致的47%内存浪费Read more

Posted in

Go结构体字段对齐陷阱(内存浪费率达68%):unsafe.Offsetof + go tool compile -S 双验证优化法

第一章:Go结构体字段对齐陷阱( … Go结构体字段对齐陷阱(内存浪费率达68%):unsafe.Offsetof + go tool compile -S 双验证优化法Read more