From 9e8ed300522c43af8359c84ddd586011d44ffd71 Mon Sep 17 00:00:00 2001 From: v2ray Date: Fri, 15 Jul 2016 15:16:35 +0200 Subject: [PATCH] update buffer pool size --- common/alloc/buffer_pool.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/alloc/buffer_pool.go b/common/alloc/buffer_pool.go index f6b685896..ea119f30e 100644 --- a/common/alloc/buffer_pool.go +++ b/common/alloc/buffer_pool.go @@ -50,6 +50,6 @@ const ( LargeBufferSize = 64*1024 - defaultOffset ) -var smallPool = NewBufferPool(1600, 128) -var mediumPool = NewBufferPool(8*1024, 128) -var largePool = NewBufferPool(64*1024, 64) +var smallPool = NewBufferPool(1600, 1024) +var mediumPool = NewBufferPool(8*1024, 256) +var largePool = NewBufferPool(64*1024, 32)