再次调低内容压缩Pool的内容长度

This commit is contained in:
GoEdgeLab
2024-04-16 12:55:18 +08:00
parent 005e27a63c
commit d4560c7fb6

View File

@@ -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
}