Skip to content

Commit 9c46c0b

Browse files
committed
75% workers
1 parent 821177e commit 9c46c0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/generate-md-exports.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ async function createWork() {
9595
await mkdir(CACHE_DIR, {recursive: true});
9696
}
9797

98-
// We are currently on Enhanced Builds in Vercel which gives us 8 cores, here we'll use half.
99-
const numWorkers = Math.max(Math.floor(cpus().length / 2), 2);
98+
// We are currently on Enhanced Builds in Vercel which gives us 8 cores, lets try 75%
99+
const numWorkers = Math.max(Math.floor(cpus().length * 0.75), 2);
100100
const workerTasks = new Array(numWorkers).fill(null).map(() => []);
101101

102102
let existingFilesOnR2 = null;

0 commit comments

Comments
 (0)