Skip to content

Commit bde779f

Browse files
committed
src: update worker old space size due to prettier
1 parent ccbfb48 commit bde779f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ const Piscina = require('piscina');
44

55
const piscina = new Piscina({
66
filename: path.resolve(__dirname, 'worker.js'),
7+
resourceLimits: {
8+
// 16GiB for each Worker (1 per run)
9+
// This was required due to prettier benchmark
10+
maxOldGenerationSizeMb: 16384,
11+
},
712
maxQueue: 1,
813
});
914

0 commit comments

Comments
 (0)