From 316a3404941396a0823fb08714c4aaac8bb3dff4 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Mon, 25 May 2026 14:51:55 +0200 Subject: [PATCH] perf(build): raise hike image-encode concurrency cap to 10 Allow up to 10 parallel image pipelines (was 4) on hosts with the cores to spare. --- package.json | 2 +- scripts/build-hikes.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c2cd47ea..52306d6e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homepage", - "version": "1.89.1", + "version": "1.89.2", "private": true, "type": "module", "scripts": { diff --git a/scripts/build-hikes.ts b/scripts/build-hikes.ts index 3ad780a0..a8b6052f 100644 --- a/scripts/build-hikes.ts +++ b/scripts/build-hikes.ts @@ -70,7 +70,7 @@ const VALID_DIFFICULTIES: readonly Difficulty[] = ['T1', 'T2', 'T3', 'T4', 'T5', // Sharp pipelines are CPU-heavy but release the JS thread while libvips runs, // so a small concurrency pool gives a near-linear speed-up. Cap at 4 to avoid // thrashing on smaller boxes (a single AVIF encode can saturate one core). -const IMAGE_CONCURRENCY = Math.max(2, Math.min(os.cpus().length, 4)); +const IMAGE_CONCURRENCY = Math.max(2, Math.min(os.cpus().length, 10)); async function pathExists(p: string): Promise { try {