Rework bufpool to be a little more efficient, I hope

This commit is contained in:
PhatPhuckDave
2024-07-23 14:55:33 +02:00
parent aff4ffe070
commit a9827f10ce
3 changed files with 77 additions and 68 deletions

View File

@@ -1,8 +1,3 @@
package pdu
import "sync"
var ByteBufferPool = &BufferPoolManager{
pools: make(map[uint]*sync.Pool),
mu: sync.Mutex{},
}
var ByteBufferPool = NewBufferPoolManager()