Posted in

【Go性能压舱石】:深入runtime/type.go,解析Go 1.21起type descriptor结构变更对基本类型反射开销的影响

第一章:布尔类型(bool)的t … 【Go性能压舱石】:深入runtime/type.go,解析Go 1.21起type descriptor结构变更对基本类型反射开销的影响Read more

Posted in

range map时value类型为interface{}会发生什么?,反射开销、类型缓存失效与iface结构体逃逸全链路分析

第一章:range map时va … range map时value类型为interface{}会发生什么?,反射开销、类型缓存失效与iface结构体逃逸全链路分析Read more

Posted in

【Go性能暗礁】:map转JSON字符串化背后是反射开销激增300%?实测10万次marshal对比:原生vs fxamacker/json vs goccy/go-json

第一章:Go中map转JSON字 … 【Go性能暗礁】:map转JSON字符串化背后是反射开销激增300%?实测10万次marshal对比:原生vs fxamacker/json vs goccy/go-jsonRead more

Posted in

为什么你的Go服务在JSON解析时CPU飙升200%?揭秘map[string]interface{}背后的反射开销与3种零拷贝替代方案

第一章:JSON解析性能危机的典 … 为什么你的Go服务在JSON解析时CPU飙升200%?揭秘map[string]interface{}背后的反射开销与3种零拷贝替代方案Read more