mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-09-27 20:59:03 +00:00
Set the upper limit of the number of search go routines
This commit is contained in:
parent
01ee335521
commit
f7f01d109e
@ -43,7 +43,7 @@ func NewMatcher(patternBuilder func([]rune) *Pattern,
|
|||||||
tac: tac,
|
tac: tac,
|
||||||
eventBox: eventBox,
|
eventBox: eventBox,
|
||||||
reqBox: util.NewEventBox(),
|
reqBox: util.NewEventBox(),
|
||||||
partitions: 16 * runtime.NumCPU(),
|
partitions: util.Min(8*runtime.NumCPU(), 32),
|
||||||
mergerCache: make(map[string]*Merger)}
|
mergerCache: make(map[string]*Merger)}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user