Skip to content

Commit

Permalink
Pre-warming the worker pool in case it will be needed, shaving some ~…
Browse files Browse the repository at this point in the history
…200ms in some cases
  • Loading branch information
fabiospampinato committed Dec 1, 2023
1 parent 9f2f94c commit 0b45639
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"tiny-jsonc": "^1.0.1",
"tiny-readdir-glob": "^1.1.0",
"tiny-spinner": "^2.0.3",
"worktank": "^2.5.2",
"worktank": "^2.6.0",
"zeptomatch": "^1.2.2"
},
"peerDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/prettier_parallel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function makeParallel(options: Options): Prettier {
name: "prettier",
size: options.parallelWorkers || Math.max(1, os.cpus().length - 1),
methods: new URL("./prettier_serial.js", import.meta.url),
warmup: true,
});

return {
Expand Down

0 comments on commit 0b45639

Please sign in to comment.