Try batches of 40

amy-image-optimization-quick-fix-experiment
Amy 8 months ago
parent 11c939db53
commit 01a3e0f5ad
  1. 2
      scripts/optimize-images.ts

@ -46,7 +46,7 @@ export async function optimizeImages() {
const numberOfWorkers = Math.min(cpus().length, 8);
const imagePool = new ImagePool(numberOfWorkers);
const batchSize = 48;
const batchSize = 40;
for (let i = 0; i < imagePaths.length; i += batchSize) {
await Promise.all(

Loading…
Cancel
Save