Skip to content

Commit d99c805

Browse files
committed
reduce batchsize
1 parent d9953ac commit d99c805

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
@@ -326,7 +326,7 @@ let main = async () => {
326326
->Array.map(f => extractDocFromFile(Path.join(["runtime", f]))->getExamples)
327327
->Array.flat
328328

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

331331
// Console.log2("module length", modules->Array.length)
332332
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
@@ -362,7 +362,7 @@ async function main() {
362362
return acc.concat([cur]);
363363
}
364364
}).map(f => getExamples(extractDocFromFile(Path.join("runtime", f)))).flat();
365-
let batchSize = (Os.cpus().length << 2);
365+
let batchSize = (Os.cpus().length << 1);
366366
let chuncks = chunkArray(modules, batchSize);
367367
let context = {
368368
contents: 0

0 commit comments

Comments
 (0)