mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-09-23 10:44:03 -04:00
remove small buffer pool
This commit is contained in:
@@ -52,8 +52,6 @@ func (p *BufferPool) Free(buffer *Buffer) {
|
||||
}
|
||||
|
||||
const (
|
||||
SmallBufferSize = 1600 - defaultOffset
|
||||
|
||||
mediumBufferByteSize = 8 * 1024
|
||||
BufferSize = mediumBufferByteSize - defaultOffset
|
||||
|
||||
@@ -64,7 +62,6 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
smallPool = NewBufferPool(1600, 256)
|
||||
mediumPool *BufferPool
|
||||
largePool *BufferPool
|
||||
)
|
||||
|
Reference in New Issue
Block a user