From 263bd61002361407bfcdd0c52402f22d71bdb9d3 Mon Sep 17 00:00:00 2001 From: Adel Salakh Date: Mon, 25 Sep 2023 19:13:56 +0200 Subject: [PATCH] Cap the number of workers to 8 --- packages/cli/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts index 644a616c..3d066bd4 100644 --- a/packages/cli/src/index.ts +++ b/packages/cli/src/index.ts @@ -29,6 +29,7 @@ class FileProcessor { constructor(private readonly config: ParsedConfig) { this.pool = new WorkerPool({ filename: new URL('./worker.js', import.meta.url).href, + maxThreads: 8, workerData: config, }); console.log(`Using a pool of ${this.pool.threads.length} threads.`);