diff --git a/src/matcher.go b/src/matcher.go index d332b85..4c00db7 100644 --- a/src/matcher.go +++ b/src/matcher.go @@ -43,7 +43,7 @@ func NewMatcher(patternBuilder func([]rune) *Pattern, tac: tac, eventBox: eventBox, reqBox: util.NewEventBox(), - partitions: 16 * runtime.NumCPU(), + partitions: util.Min(8*runtime.NumCPU(), 32), mergerCache: make(map[string]*Merger)} }