decrease copy buffer

This commit is contained in:
ginuerzh
2022-03-31 21:06:33 +08:00
parent 47cfc087e9
commit fc1e6e8ff2
4 changed files with 11 additions and 4 deletions

View File

@ -34,6 +34,15 @@ var (
},
},
},
{
size: 2048,
pool: sync.Pool{
New: func() any {
b := make([]byte, 2048)
return &b
},
},
},
{
size: 4096,
pool: sync.Pool{