Try batches of 64
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
c9a01b85ed
commit
dde42f2dc0
|
@ -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 = 32;
|
const batchSize = 64;
|
||||||
|
|
||||||
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