mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-28 14:23:04 +03:00
Use more threads for build process.
This commit is contained in:
parent
f777ecad07
commit
b10b247d99
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user