From f7f01d109eb05c7eae82c243b6b6d5c5951ee707 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 19 Aug 2016 01:43:38 +0900 Subject: Set the upper limit of the number of search go routines --- src/matcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/matcher.go') diff --git a/src/matcher.go b/src/matcher.go index d332b85b..4c00db7e 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)} } -- cgit v1.2.3