Skip to content

Commit

Permalink
perf: ⚡️ lower concurrency (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria authored Oct 18, 2024
1 parent fe1a89e commit 08b8686
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 @@ -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...)

Expand Down

0 comments on commit 08b8686

Please sign in to comment.