Reduce counters a bit

This commit is contained in:
Neil Alexander 2022-06-15 16:32:15 +01:00
parent 52aa240586
commit ad40b054bc
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

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