Implement byte buffer pool
This commit is contained in:
8
pdu/global.go
Normal file
8
pdu/global.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package pdu
|
||||
|
||||
import "sync"
|
||||
|
||||
var byteBufferPool = &BufferPoolManager{
|
||||
pools: make(map[int]*sync.Pool),
|
||||
mu: sync.Mutex{},
|
||||
}
|
||||
Reference in New Issue
Block a user