aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-08-06 13:55:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-08-06 13:55:45 +0200
commita39d7ae1aaa54a57df7f11e4ba12e2529286ea8c (patch)
tree433b86d815646c0d67512d69c58c8e7659da8b20 /libbuild2
parent112de2fc7317d1eed713191476ea7d5632674eaf (diff)
Double default task queue size
Testing shows quite a lot of "full" conditions on low core count (e.g., 2) CPUs (such as Intel U-series).
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/scheduler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/scheduler.cxx b/libbuild2/scheduler.cxx
index 82bc4cc..c660bba 100644
--- a/libbuild2/scheduler.cxx
+++ b/libbuild2/scheduler.cxx
@@ -373,7 +373,7 @@ namespace build2
//
task_queue_depth_ = queue_depth != 0
? queue_depth
- : max_active * 4;
+ : max_active * 8;
queued_task_count_.store (0, memory_order_relaxed);