From 08b8686b4adb734f31edae3888909e9c6c1cc0b3 Mon Sep 17 00:00:00 2001 From: Jaskaran Sarkaria Date: Fri, 18 Oct 2024 14:36:58 +0100 Subject: [PATCH] =?UTF-8?q?perf:=20=E2=9A=A1=EF=B8=8F=20lower=20concurrenc?= =?UTF-8?q?y=20(#647)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/environment/apply.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/environment/apply.go b/pkg/environment/apply.go index 989d12c2..e38621fe 100644 --- a/pkg/environment/apply.go +++ b/pkg/environment/apply.go @@ -194,7 +194,7 @@ func (a *Apply) applyNamespaceDirs(chunkFolder []string) error { chunkStream := util.Generator(done, chunkFolder...) - routineResults := a.parallelApplyNamespace(done, chunkStream, 4) // goroutines are very lightweight and can number in millions, but the tasks we are doing are very heavy so we need to limit this as much as possible + routineResults := a.parallelApplyNamespace(done, chunkStream, 2) // goroutines are very lightweight and can number in millions, but the tasks we are doing are very heavy so we need to limit this as much as possible results := util.FanIn(done, routineResults...)