From ad40b054bce23bd579bf839a2a720c05de1af324 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 15 Jun 2022 16:32:15 +0100 Subject: [PATCH] Reduce counters a bit --- internal/caching/impl_ristretto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/caching/impl_ristretto.go b/internal/caching/impl_ristretto.go index b6c45009d..c9ea84a21 100644 --- a/internal/caching/impl_ristretto.go +++ b/internal/caching/impl_ristretto.go @@ -16,7 +16,7 @@ import ( func MustCreateCache(maxCost CacheSize, enablePrometheus bool) *ristretto.Cache { cache, err := ristretto.NewCache(&ristretto.Config{ - NumCounters: 1e6, + NumCounters: 1e5, MaxCost: int64(maxCost), BufferItems: 64, Metrics: true,