Posted in

Go JSON序列化拖慢300%?对比encoding/json、easyjson、ffjson、gjson与自定义AST解析器实测基准(含Go 1.23 jsonv2预览)

第一章:Go JSON序列化性能 … Go JSON序列化拖慢300%?对比encoding/json、easyjson、ffjson、gjson与自定义AST解析器实测基准(含Go 1.23 jsonv2预览)Read more

Posted in

【20年Go老兵私藏】:不用第三方库,仅用标准库+unsafe+gjson.Raw,实现map-free JSON patch & marshal(含完整单元测试)

第一章:Go语言标准库与unsa … 【20年Go老兵私藏】:不用第三方库,仅用标准库+unsafe+gjson.Raw,实现map-free JSON patch & marshal(含完整单元测试)Read more

Posted in

Go中gjson + map + marshal链路的可观测性建设:自动注入trace span、记录gjson路径命中率、map分配统计(OpenTelemetry集成方案)

第一章:Go中gjson + m … Go中gjson + map + marshal链路的可观测性建设:自动注入trace span、记录gjson路径命中率、map分配统计(OpenTelemetry集成方案)Read more

Posted in

json.Marshal(map)在gjson上下文中的5个隐藏开销:interface{}转换、reflect.Value缓存、float64精度丢失、time.Time序列化、nil slice处理

第一章:json.Marshal … json.Marshal(map)在gjson上下文中的5个隐藏开销:interface{}转换、reflect.Value缓存、float64精度丢失、time.Time序列化、nil slice处理Read more