From d2c512575ccdbe90de38999001046038d01df366 Mon Sep 17 00:00:00 2001 From: tsmethurst Date: Thu, 2 Jun 2022 15:52:12 +0200 Subject: [PATCH] increase default worker count to 4 per cpu --- internal/concurrency/workers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/concurrency/workers.go b/internal/concurrency/workers.go index aeafeff12..65ce9e3ab 100644 --- a/internal/concurrency/workers.go +++ b/internal/concurrency/workers.go @@ -45,7 +45,7 @@ func NewWorkerPool[MsgType any](workers int, queueRatio int) *WorkerPool[MsgType if workers < 1 { // ensure sensible workers - workers = runtime.GOMAXPROCS(0) * 2 + workers = runtime.GOMAXPROCS(0) * 4 } if queueRatio < 1 { // ensure sensible ratio