diff --git a/src/util/worker_pool.js b/src/util/worker_pool.js index 53730b5c187..734f886e23a 100644 --- a/src/util/worker_pool.js +++ b/src/util/worker_pool.js @@ -43,4 +43,5 @@ export default class WorkerPool { } } -WorkerPool.workerCount = Math.max(Math.floor(browser.hardwareConcurrency / 2), 1); +const availableLogicalProcessors = Math.floor(browser.hardwareConcurrency / 2); +WorkerPool.workerCount = Math.max(Math.min(availableLogicalProcessors, 6), 1);