Revert "Try 4 workers"

This reverts commit 3867be2c75.
This commit is contained in:
Amy 2022-06-04 17:55:07 -04:00
parent 3867be2c75
commit d7e82feed6
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ export async function optimizeImages() {
await fse.emptyDir(DESTINATION_DIRECTORY);
// maximum number of workers is 8 in order to avoid running out of memory
const numberOfWorkers = Math.min(cpus().length, 4);
const numberOfWorkers = Math.min(cpus().length, 8);
const imagePool = new ImagePool(numberOfWorkers);
await Promise.all(