Use more threads for build process.

This commit is contained in:
Dillon Kearns 2022-02-09 17:21:33 -08:00
parent f777ecad07
commit b10b247d99

View File

@ -163,7 +163,7 @@ async function runCli(options) {
const getPathsWorker = initWorker(options.base);
getPathsWorker.then(prepareStaticPathsNew);
const threadsToCreate = Math.max(1, cpuCount / 2 - 1);
const threadsToCreate = Math.max(1, cpuCount - 1);
pool.push(getPathsWorker);
for (let index = 0; index < threadsToCreate - 1; index++) {
pool.push(initWorker(options.base));