summaryrefslogtreecommitdiffstats
path: root/src/matcher.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-08-19 01:43:38 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-08-19 01:55:38 +0900
commitf7f01d109eb05c7eae82c243b6b6d5c5951ee707 (patch)
tree0de99026c1d407657fc598eeb082278850bfca2c /src/matcher.go
parent01ee335521485e82f0a2eb88cec79908b469b187 (diff)
Set the upper limit of the number of search go routines
Diffstat (limited to 'src/matcher.go')
-rw-r--r--src/matcher.go2
1 files changed, 1 insertions, 1 deletions
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)}
}