mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-20 23:41:23 +02:00
tweak: optimize memory allocation and increase throughput
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/yusing/go-proxy/internal/utils/synk"
|
||||
)
|
||||
|
||||
var bufPool = synk.NewBytesPool(1024, 16384)
|
||||
var bufPool = synk.NewBytesPool()
|
||||
|
||||
// explicitly implement MarshalJSON to avoid reflection.
|
||||
func (s *SystemInfo) MarshalJSON() ([]byte, error) {
|
||||
|
||||
Reference in New Issue
Block a user