mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-16 12:43:50 -07:00
Set the upper limit of the number of search go routines
This commit is contained in:
@@ -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)}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user