mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-03 06:40:25 +08:00
再次调低内容压缩Pool的内容长度
This commit is contained in:
@@ -109,12 +109,12 @@ func GenerateCompressLevel(minLevel int, maxLevel int) (level int) {
|
||||
|
||||
// CalculatePoolSize 计算Pool尺寸
|
||||
func CalculatePoolSize() int {
|
||||
var maxSize = memutils.SystemMemoryGB() * 64
|
||||
var maxSize = memutils.SystemMemoryGB() * 32
|
||||
if maxSize == 0 {
|
||||
maxSize = 128
|
||||
}
|
||||
if maxSize > 4096 {
|
||||
maxSize = 4096
|
||||
if maxSize > 2048 {
|
||||
maxSize = 2048
|
||||
}
|
||||
return maxSize
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user