mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-08 14:43:09 -06:00
Reduce counters a bit
This commit is contained in:
parent
52aa240586
commit
ad40b054bc
|
|
@ -16,7 +16,7 @@ import (
|
||||||
|
|
||||||
func MustCreateCache(maxCost CacheSize, enablePrometheus bool) *ristretto.Cache {
|
func MustCreateCache(maxCost CacheSize, enablePrometheus bool) *ristretto.Cache {
|
||||||
cache, err := ristretto.NewCache(&ristretto.Config{
|
cache, err := ristretto.NewCache(&ristretto.Config{
|
||||||
NumCounters: 1e6,
|
NumCounters: 1e5,
|
||||||
MaxCost: int64(maxCost),
|
MaxCost: int64(maxCost),
|
||||||
BufferItems: 64,
|
BufferItems: 64,
|
||||||
Metrics: true,
|
Metrics: true,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue