Skip to content

Commit 435606b

Browse files
committed
bump min workers
1 parent 88a59b5 commit 435606b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/generate-md-exports.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ async function createWork() {
3535
await mkdir(OUTPUT_DIR, {recursive: true});
3636

3737
// On a 16-core machine, 8 workers were optimal (and slightly faster than 16)
38-
const numWorkers = Math.max(Math.floor(cpus().length / 2), 2);
38+
// Putting 4 as the minimum as Vercel has 4 cores per builder and it may help
39+
// us cut down some of the time there.
40+
const numWorkers = Math.max(Math.floor(cpus().length / 2), 4);
3941
const workerTasks = new Array(numWorkers).fill(null).map(() => []);
4042

4143
console.log(`🔎 Discovering files to convert...`);

0 commit comments

Comments
 (0)