From bbc41c5e638190a98d780919c1bb305ff361505e Mon Sep 17 00:00:00 2001 From: V2Ray Date: Wed, 21 Oct 2015 22:39:36 +0200 Subject: [PATCH] Increase small buffer pool --- common/alloc/buffer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/alloc/buffer.go b/common/alloc/buffer.go index 36d7d21f..4cd57afe 100644 --- a/common/alloc/buffer.go +++ b/common/alloc/buffer.go @@ -124,7 +124,7 @@ func (p *bufferPool) cleanup(tick <-chan time.Time) { } } -var smallPool = newBufferPool(1024, 16, 64) +var smallPool = newBufferPool(1024, 64, 512) var mediumPool = newBufferPool(8*1024, 256, 2048) var largePool = newBufferPool(64*1024, 128, 1024)