mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-06-03 17:59:11 -04:00
Use large buffer if download size is huge
This commit is contained in:
@@ -113,7 +113,7 @@ func (p *bufferPool) cleanup(tick <-chan time.Time) {
|
||||
|
||||
var smallPool = newBufferPool(1024, 16, 64)
|
||||
var mediumPool = newBufferPool(8*1024, 256, 2048)
|
||||
var largePool = newBufferPool(64*1024, 16, 64)
|
||||
var largePool = newBufferPool(64*1024, 128, 1024)
|
||||
|
||||
func NewSmallBuffer() *Buffer {
|
||||
return smallPool.allocate()
|
||||
|
||||
Reference in New Issue
Block a user