perf(json): replace encoding/json with bytedance/sonic

Migrate all JSON marshaling and unmarshaling operations to use
github.com/bytedance/sonic for improved performance. This affects
adapters, middleware, proxy handlers, and the sync store.
This commit is contained in:
zenfun
2025-12-10 23:21:51 +08:00
parent 770a9fef2b
commit 5826db3954
5 changed files with 13 additions and 12 deletions

2
go.mod
View File

@@ -3,6 +3,7 @@ module github.com/ez-api/ez-api
go 1.24.5
require (
github.com/bytedance/sonic v1.14.0
github.com/gin-gonic/gin v1.11.0
github.com/redis/go-redis/v9 v9.17.2
github.com/swaggo/files v1.0.1
@@ -15,7 +16,6 @@ require (
require (
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/bytedance/sonic v1.14.0 // indirect
github.com/bytedance/sonic/loader v0.3.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cloudwego/base64x v0.1.6 // indirect