From 7243f95380d71b914db340bdbdf02e76029e2023 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Thu, 30 Jul 2020 10:17:36 +0100 Subject: [PATCH] [thin_check (rust)] Drop nr threads down to 4 We get very little benefit from threads atm. Need to improve IO handling first. --- src/thin/check.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thin/check.rs b/src/thin/check.rs index 98b343d..90d9703 100644 --- a/src/thin/check.rs +++ b/src/thin/check.rs @@ -242,7 +242,7 @@ impl NodeVisitor for TopLevelVisitor { w.engine.read_many(&mut blocks)?; // FIXME: with a thread pool we need to return errors another way. - let nr_workers = 16; + let nr_workers = 4; let pool = ThreadPool::new(nr_workers); let mut n = 0;