From 2701a82905d66b76dad11b2e9c6a5bc7141c95e7 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sun, 6 Sep 2026 12:13:13 +0200 Subject: [PATCH] docs(epg): separate coverage chunk size in the guide plan Co-Authored-By: Claude Fable 5.1 --- docs/superpowers/plans/2026-09-06-epg-guide-m3u.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/superpowers/plans/2026-09-06-epg-guide-m3u.md b/docs/superpowers/plans/2026-09-06-epg-guide-m3u.md index d683e8c06..42893b4c3 100644 --- a/docs/superpowers/plans/2026-09-06-epg-guide-m3u.md +++ b/docs/superpowers/plans/2026-09-06-epg-guide-m3u.md @@ -1588,8 +1588,10 @@ import { EpgGuideWindow, } from './epg-guide-source'; -/** Channels per `loadPrograms`/`loadCoverage` call (the bridge caps at 100). */ +/** Channels per `loadPrograms` call (the programme IPC caps at 100 keys). */ export const EPG_GUIDE_LOAD_CHUNK = 100; +/** Channels per `loadCoverage` call (the coverage IPC caps at 2000 keys). */ +export const EPG_GUIDE_COVERAGE_CHUNK = 1000; export type EpgGuideRowStatus = 'idle' | 'loading' | 'loaded' | 'none'; @@ -1704,8 +1706,8 @@ export class EpgGuideProgramsService { .channels() .filter((channel) => channel.epgKey !== null); const chunks: EpgGuideChannel[][] = []; - for (let start = 0; start < keyed.length; start += EPG_GUIDE_LOAD_CHUNK) { - chunks.push(keyed.slice(start, start + EPG_GUIDE_LOAD_CHUNK)); + for (let start = 0; start < keyed.length; start += EPG_GUIDE_COVERAGE_CHUNK) { + chunks.push(keyed.slice(start, start + EPG_GUIDE_COVERAGE_CHUNK)); } Promise.all( chunks.map((channels) =>