From 4ffa3b3157d6606a62a34bc41c37967425727ee2 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sat, 19 Aug 2023 21:08:31 -0500 Subject: [PATCH] Use all cores by default on task groups. Since the main thread when running a task group is likely idle make the group use all cores by default. --- src/engine/tasks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/tasks.cpp b/src/engine/tasks.cpp index d592d0dfdb..a644235729 100644 --- a/src/engine/tasks.cpp +++ b/src/engine/tasks.cpp @@ -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