Skip to content

Commit

Permalink
Cap the number of workers to 8
Browse files Browse the repository at this point in the history
  • Loading branch information
adelsz authored Sep 25, 2023
1 parent d497b3f commit 263bd61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class FileProcessor {
constructor(private readonly config: ParsedConfig) {
this.pool = new WorkerPool({
filename: new URL('./worker.js', import.meta.url).href,
maxThreads: 8,
workerData: config,
});
console.log(`Using a pool of ${this.pool.threads.length} threads.`);
Expand Down

0 comments on commit 263bd61

Please sign in to comment.