Skip to content

Commit

Permalink
Use all cores by default on task groups.
Browse files Browse the repository at this point in the history
Since the main thread when running a task group is likely idle make the
group use all cores by default.
  • Loading branch information
grafikrobot committed Aug 20, 2023
1 parent 5148264 commit 4ffa3b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/tasks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ unsigned get_parallelism(int parallelism)
{
return parallelism >= 0
? parallelism
: std::min(unsigned(globs.jobs), system_info().cpu_thread_count()) - 1;
: std::min(unsigned(globs.jobs), system_info().cpu_thread_count());
}
} // namespace

Expand Down

0 comments on commit 4ffa3b3

Please sign in to comment.