We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6d806e commit e5d53b0Copy full SHA for e5d53b0
scripts/generate-md-exports.mjs
@@ -95,8 +95,8 @@ async function createWork() {
95
await mkdir(CACHE_DIR, {recursive: true});
96
}
97
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);
+ // On a 16-core machine, 8 workers were optimal (and slightly faster than 16)
+ const numWorkers = Math.max(Math.floor(cpus().length / 2), 2);
100
const workerTasks = new Array(numWorkers).fill(null).map(() => []);
101
102
let existingFilesOnR2 = null;
0 commit comments