From a39d7ae1aaa54a57df7f11e4ba12e2529286ea8c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 6 Aug 2020 13:55:45 +0200 Subject: 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). --- libbuild2/scheduler.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbuild2') 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); -- cgit v1.1