feat: use gvisor to optimize performance

This commit is contained in:
fengcaiwen
2023-08-11 14:25:01 +08:00
committed by naison
parent 27482158e7
commit bf47c6f4e1
13 changed files with 574 additions and 38 deletions

View File

@@ -145,3 +145,9 @@ var (
},
}
)
var SPool = sync.Pool{
New: func() any {
return make([]byte, 2)
},
}