From fcf2e04e8debed28e9440d88aeeedeccbf63c9e3 Mon Sep 17 00:00:00 2001 From: Daniel Milde Date: Tue, 2 Mar 2021 23:15:00 +0100 Subject: [PATCH] use 3x number of cores --- analyze/dir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyze/dir.go b/analyze/dir.go index 35666c5d4..109f0c201 100644 --- a/analyze/dir.go +++ b/analyze/dir.go @@ -17,7 +17,7 @@ type CurrentProgress struct { Done bool } -var concurrencyLimit chan struct{} = make(chan struct{}, 2*runtime.NumCPU()) +var concurrencyLimit chan struct{} = make(chan struct{}, 3*runtime.NumCPU()) // ShouldDirBeIgnored whether path should be ignored type ShouldDirBeIgnored func(path string) bool