From 6cbe5b0db6251070399e282b37929ef739bf39b3 Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 31 Dec 2019 11:04:08 +0000 Subject: more sensible worker count default --- lib/MaildirIndexer/Store.rakumod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MaildirIndexer/Store.rakumod b/lib/MaildirIndexer/Store.rakumod index 2144ddf..8efb731 100644 --- a/lib/MaildirIndexer/Store.rakumod +++ b/lib/MaildirIndexer/Store.rakumod @@ -8,7 +8,7 @@ use MaildirIndexer::ScanDir; has Lock $!lock .= new; has MaildirIndexer::Index @.indices is required; has Channel $.file-channel is required; -has Int $.workers = 10; +has Int $.workers = Kernel.cpu-cores - 1; method dump(--> Nil) { $!lock.protect: { -- cgit v1.2.3