Rework bufpool to be a little more efficient, I hope
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
package pdu
|
||||
|
||||
import "sync"
|
||||
|
||||
var ByteBufferPool = &BufferPoolManager{
|
||||
pools: make(map[uint]*sync.Pool),
|
||||
mu: sync.Mutex{},
|
||||
}
|
||||
var ByteBufferPool = NewBufferPoolManager()
|
||||
|
||||
Reference in New Issue
Block a user