Browse Source

update buffer pool size

v2ray 9 years ago
parent
commit
9e8ed30052
1 changed files with 3 additions and 3 deletions
  1. 3 3
      common/alloc/buffer_pool.go

+ 3 - 3
common/alloc/buffer_pool.go

@@ -50,6 +50,6 @@ const (
 	LargeBufferSize = 64*1024 - defaultOffset
 	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)