Try batches of 40
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
11c939db53
commit
01a3e0f5ad
|
@ -46,7 +46,7 @@ export async function optimizeImages() {
|
||||||
const numberOfWorkers = Math.min(cpus().length, 8);
|
const numberOfWorkers = Math.min(cpus().length, 8);
|
||||||
const imagePool = new ImagePool(numberOfWorkers);
|
const imagePool = new ImagePool(numberOfWorkers);
|
||||||
|
|
||||||
const batchSize = 48;
|
const batchSize = 40;
|
||||||
|
|
||||||
for (let i = 0; i < imagePaths.length; i += batchSize) {
|
for (let i = 0; i < imagePaths.length; i += batchSize) {
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
|
|
Loading…
Reference in New Issue