Posted in

Go JSON语法性能黑箱:Marshal/Unmarshal中结构体字段tag解析占时比高达38%(pprof cpu profile截图佐证)

第一章:Go JSON性能瓶颈的 … Go JSON语法性能黑箱:Marshal/Unmarshal中结构体字段tag解析占时比高达38%(pprof cpu profile截图佐证)Read more

Posted in

【Go性能调优紧急补丁】:替换默认json.Marshal为fxamacker/json(兼容gjson+map),实测GC次数↓89%,P99延迟↓410ms

第一章:Go性能调优紧急补丁 当 … 【Go性能调优紧急补丁】:替换默认json.Marshal为fxamacker/json(兼容gjson+map),实测GC次数↓89%,P99延迟↓410msRead more

Posted in

【Go工程师必藏私密笔记】:绕过json.Marshal,用gjson+unsafe.Slice+map直接构造[]byte的极限优化法(仅限Go 1.21+)

第一章:Go工程师必藏私密笔记 … 【Go工程师必藏私密笔记】:绕过json.Marshal,用gjson+unsafe.Slice+map直接构造[]byte的极限优化法(仅限Go 1.21+)Read more

Posted in

【仅限Go高级工程师查阅】:绕过json.Marshal,用//go:generate + template生成type-safe map-to-JSON函数,支持嵌套struct/泛型/自定义时间格式

第一章:Go map内struc … 【仅限Go高级工程师查阅】:绕过json.Marshal,用//go:generate + template生成type-safe map-to-JSON函数,支持嵌套struct/泛型/自定义时间格式Read more