Implement byte buffer pool

This commit is contained in:
PhatPhuckDave
2024-07-22 23:02:20 +02:00
parent c558e54750
commit 73cc49788f
2 changed files with 151 additions and 0 deletions

8
pdu/global.go Normal file
View File

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