Skip to content

Commit 7a6e369

Browse files
committed
increase batchSize
1 parent 15a3a39 commit 7a6e369

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/docstrings_examples/DocTest.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ let main = async () => {
352352
->Array.map(f => extractDocFromFile(Path.join(["runtime", f]))->getExamples)
353353
->Array.flat
354354

355-
let batchSize = OS.cpus()->Array.length * 2
355+
let batchSize = OS.cpus()->Array.length * 4
356356

357357
// Console.log2("module length", modules->Array.length)
358358
let chuncks = modules->chunkArray(batchSize)

tests/docstrings_examples/DocTest.res.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ async function main() {
390390
return acc.concat([cur]);
391391
}
392392
}).map(f => getExamples(extractDocFromFile(Path.join("runtime", f)))).flat();
393-
let batchSize = (Os.cpus().length << 1);
393+
let batchSize = (Os.cpus().length << 2);
394394
let chuncks = chunkArray(modules, batchSize);
395395
console.log("chuncks length", chuncks.length);
396396
console.log("chunck part size", $$Array.reduce(chuncks, 0, (acc, cur) => acc + cur.length | 0));

0 commit comments

Comments
 (0)