1
0
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:
Darien Raymond
2016-11-01 12:37:35 +01:00
parent aabb9137e1
commit 43dacc3936
4 changed files with 2 additions and 17 deletions

View File

@@ -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
)