Browse Source

remove buffer pool of 512k

Darien Raymond 7 năm trước cách đây
mục cha
commit
720aca16d5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      common/buf/buffer_pool.go

+ 1 - 1
common/buf/buffer_pool.go

@@ -20,7 +20,7 @@ func createAllocFunc(size int32) func() interface{} {
 // Package buf is guaranteed to not use buffers larger than the largest pool.
 // Other packets may use larger buffers.
 const (
-	numPools  = 5
+	numPools  = 4
 	sizeMulti = 4
 )