From ea6d3d7107525deca23badb7499729e21be1ec8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Thu, 5 Oct 2023 13:36:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AE=A1=E6=95=B0=E5=99=A8?= =?UTF-8?q?=E5=AE=B9=E9=87=8F=E4=B8=8A=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/utils/counters/counter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/utils/counters/counter.go b/internal/utils/counters/counter.go index ca5c2e8..bef8238 100644 --- a/internal/utils/counters/counter.go +++ b/internal/utils/counters/counter.go @@ -11,7 +11,7 @@ import ( "time" ) -const maxItemsPerGroup = 60_000 +const maxItemsPerGroup = 50_000 var SharedCounter = NewCounter().WithGC() @@ -27,7 +27,7 @@ type Counter struct { // NewCounter create new counter func NewCounter() *Counter { - var count = utils.SystemMemoryGB() * 4 + var count = utils.SystemMemoryGB() * 8 if count < 8 { count = 8 }