Skip to content

Commit

Permalink
perf: ⚡️ concurrent 2 -> 3 (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria authored Nov 14, 2024
1 parent 5ac21de commit 23288f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/environment/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (a *Apply) applyNamespaceDirs(chunkFolder []string) error {

chunkStream := util.Generator(done, chunkFolder...)

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
routineResults := a.parallelApplyNamespace(done, chunkStream, 3) // 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...)

Expand Down

0 comments on commit 23288f3

Please sign in to comment.