Skip to content

Commit e5d53b0

Browse files
committed
back to half
1 parent a6d806e commit e5d53b0

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, lets try 75%
99-
const numWorkers = Math.max(Math.floor(cpus().length * 0.75), 2);
98+
// On a 16-core machine, 8 workers were optimal (and slightly faster than 16)
99+
const numWorkers = Math.max(Math.floor(cpus().length / 2), 2);
100100
const workerTasks = new Array(numWorkers).fill(null).map(() => []);
101101

102102
let existingFilesOnR2 = null;

0 commit comments

Comments
 (0)