mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-14 15:54:42 +08:00
优化网络模块
This commit is contained in:
@@ -34,7 +34,6 @@ func (areaPool *memAreaPool) makePool() {
|
||||
for i := 0; i < poolLen; i++ {
|
||||
memSize := (areaPool.minAreaValue - 1) + (i+1)*areaPool.growthValue
|
||||
areaPool.pool[i] = sync.Pool{New: func() interface{} {
|
||||
//fmt.Println("make memsize:",memSize)
|
||||
return make([]byte, memSize)
|
||||
}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user