Reduce counters a bit

This commit is contained in:
Neil Alexander 2022-06-14 15:29:41 +01:00
parent e4ccddf5b7
commit 1fd4ec1bb6
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -15,7 +15,7 @@ import (
func NewRistrettoCache(maxCost CacheSize, enablePrometheus bool) (*Caches, error) {
cache, err := ristretto.NewCache(&ristretto.Config{
NumCounters: 1e7,
NumCounters: 1e6,
MaxCost: int64(maxCost),
BufferItems: 64,
Metrics: true,