diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2016-08-19 01:43:38 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-08-19 01:55:38 +0900 |
commit | f7f01d109eb05c7eae82c243b6b6d5c5951ee707 (patch) | |
tree | 0de99026c1d407657fc598eeb082278850bfca2c /src | |
parent | 01ee335521485e82f0a2eb88cec79908b469b187 (diff) |
Set the upper limit of the number of search go routines
Diffstat (limited to 'src')
-rw-r--r-- | src/matcher.go | 2 |
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)} } |