1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-26 13:56:12 -04:00

adjust number of preallocated buffers

This commit is contained in:
v2ray 2016-08-01 17:47:31 +02:00
parent 283bafdd4a
commit 1f503ec99f
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -55,6 +55,6 @@ const (
LargeBufferSize = 64*1024 - defaultOffset
)
var smallPool = NewBufferPool(1600, 1024)
var mediumPool = NewBufferPool(8*1024, 256)
var smallPool = NewBufferPool(1600, 256)
var mediumPool = NewBufferPool(8*1024, 1024)
var largePool = NewBufferPool(64*1024, 32)