mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
adjust number of preallocated buffers
This commit is contained in:
parent
283bafdd4a
commit
1f503ec99f
@ -55,6 +55,6 @@ const (
|
|||||||
LargeBufferSize = 64*1024 - defaultOffset
|
LargeBufferSize = 64*1024 - defaultOffset
|
||||||
)
|
)
|
||||||
|
|
||||||
var smallPool = NewBufferPool(1600, 1024)
|
var smallPool = NewBufferPool(1600, 256)
|
||||||
var mediumPool = NewBufferPool(8*1024, 256)
|
var mediumPool = NewBufferPool(8*1024, 1024)
|
||||||
var largePool = NewBufferPool(64*1024, 32)
|
var largePool = NewBufferPool(64*1024, 32)
|
||||||
|
Loading…
Reference in New Issue
Block a user