mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-16 14:16:16 -08:00
* perf(web): take the Material snack-bar off the startup path The seven services and the app shell created with the app injected MatSnackBar, and snack-bar.mjs statically imports Material's button, the icon button chunk, ripple and the CDK a11y module, so about 110 KB sat in the initial bundle although a toast shows only after an event. A root LazySnackBar (@iptvnator/services/lazy-snack-bar) resolves the snack-bar from a dynamic import the way LazyMatDialog does, retrying after a failed chunk load, and opens text toasts with MatSnackBar.open's arguments; a failed load is logged without the message. The eager importers open their toasts through it with unchanged messages, actions, durations and panel classes; lazy code keeps injecting MatSnackBar. The startup status defers its Retry button, the other eager importer of the button chunk, with a native button as the error fallback. Local production build: renderer.initialBytes 1,349,048 -> 1,236,918 (-112,130, -8.3%); no Material module is in the initial bundle any more. The CDK overlay, scrolling and portal chunks (about 78 KB) stay through the FullscreenOverlayContainer provider in app.config.ts. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix(web): keep a native Retry while the startup button chunk loads Greptile (local round 1): the failure screen had no Retry button until the deferred Material button chunk arrived. One native button, drawn in the flat button's shape with theme colours, is now the placeholder and the error view of the defer block, so a retry is possible while the chunk downloads and after a failed load. Baseline and docs follow the re-measured value, 1,237,440 bytes. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * docs(perf): point the initialBytes evidence at the opened pull request The baseline and the performance doc named the predicted number; the pull request opened as #1939. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * test(web): cover the toast actions behind the lazy snack-bar Greptile (PR round 1): the Refresh and Trust-host actions now run after LazySnackBar.open resolves, and no test exercised them. The PWA update toast test holds the toast promise, then resolves it and picks Refresh; the page reload is a field the spec substitutes, as jsdom's location cannot be spied on. The Electron test does the same for the TLS trust toast: the confirmation opens only once the toast is up, approving it records the host and retries the fetch. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * test(web): type the stubbed toast ref as Observable<undefined> CI's spec typecheck rejected `typeof EMPTY` (Observable<never>) for a stub that returns `of(undefined)`. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * perf(web): lower the initialBytes baseline to the merged measurement Merged with #1938 the branch measures 1,231,455 bytes on a local production build (the radio play control's fab tokens left the stylesheet); the baseline follows it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * perf(web): lower the initialBytes baseline to the zoneless merged measurement Merged with #1929, #1936 and #1938 the branch measures 1,178,109 bytes on a local production build; the baseline follows it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * perf(web): re-measure initialBytes after merging #1903 and #1942 Merged with #1903 (self-hosted server storage, which raised master's baseline by 7,245 bytes on purpose) and #1942 the branch measures 1,187,983 bytes on a local production build, below master's 1,285,523; no Material module is in the initial bundle. The new favorites effect spec provides the LazySnackBar stub the merged effect injects. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * perf(xtream): open favorites toasts through LazySnackBar #1934 gave the Xtream store's favorites feature a static MatSnackBar injection. The store exists from startup, so that one import put Material's snack-bar, button, icon-button and ripple chunks (about 95 KB) back on the renderer's initial path. The feature now opens its two toasts through LazySnackBar with the same messages and durations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(perf): count statically imported chunks in renderer.initialBytes Angular's builder emits at most ten modulepreload hints. Once the startup graph passed ten chunks, the rest were fetched through main.js's own imports but never counted, so the counter stopped growing and an eager MatSnackBar import on master went unnoticed. The script now follows the static import graph of every counted script (dynamic import() targets stay lazy; a missing imported file is an error), which matches the bundler's metafile closure exactly: 1,196,205 bytes for this branch, where the old counter read 1,098,535. The baseline follows the new measurement and its note now explains the current limit (Greptile). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(perf): parse startup imports and count them per request URL Codex (PR round): the regexes also matched import-shaped text in strings, templates and comments, which could count a lazy chunk or fail on a file that does not exist. Static declarations are now read from TypeScript's syntax tree (top-level import/export-from statements only). Imports are also deduplicated by request URL, like the index.html references, so a preload of chunk.js?v=1 no longer hides an import of ./chunk.js. The real build still measures 1,196,205 bytes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
169 lines
10 KiB
JSON
169 lines
10 KiB
JSON
{
|
|
"version": 1,
|
|
"journeys": {
|
|
"launch": {
|
|
"renderer.initialBytes": {
|
|
"value": 1196205,
|
|
"unit": "bytes",
|
|
"slack": 4096,
|
|
"updatedAt": "2026-10-14",
|
|
"evidencePr": 1939,
|
|
"measuredWith": "pnpm nx build web && pnpm run perf:initial-bytes",
|
|
"note": "No Angular Material module is in the initial bundle since #1939: services created with the app open toasts through LazySnackBar and dialogs through LazyMatDialog, so a new eager MatSnackBar or MatDialog import brings back Material's button, ripple and the CDK a11y chunks (about 110 KB). The CDK overlay stays initial through the FullscreenOverlayContainer provider in app.config.ts. Self-hosted server storage (#1903) keeps only what must run before the first route on the startup path (the /v1/instance probe and remembered server, the connection status, the token bound to its instance, the playlist storage backend); the storage code itself loads by dynamic import in server mode only."
|
|
},
|
|
"renderer.ipcCallsToFirstCard": {
|
|
"value": 15,
|
|
"unit": "calls",
|
|
"slack": 0,
|
|
"updatedAt": "2026-10-04",
|
|
"evidencePr": 1828,
|
|
"evidenceRun": "https://github.com/4gray/iptvnator/actions/runs/37192092882",
|
|
"measuredWith": "pnpm run perf:journeys (ubuntu-latest, xvfb), identical in 3 runs"
|
|
},
|
|
"renderer.domMutationsToFirstCard": {
|
|
"value": 570,
|
|
"unit": "mutations",
|
|
"slack": 0,
|
|
"updatedAt": "2026-10-12",
|
|
"evidencePr": 1903,
|
|
"measuredWith": "J1 launch A/B on macOS (pnpm run perf:journeys builds, launch journey only): master 6fe684af5 555, PR 1903 556 in every iteration; CI measured 569 on master",
|
|
"note": "Raised by 1 for self-hosted server storage: its new lazy chunks (server sign-in, server-storage providers, Settings > Server) split one shared initial chunk in two, so index.html carries one more modulepreload link, a node the parser inserts. Initial bytes are raised separately (see renderer.initialBytes)."
|
|
},
|
|
"main.modulesRegisteredBeforeWindow": {
|
|
"value": 2,
|
|
"unit": "phases",
|
|
"slack": 0,
|
|
"note": "guard only, not validated: no PR has yet shown that lowering this counter lowers the journey wall-clock (Principle 3)",
|
|
"updatedAt": "2026-10-04",
|
|
"evidencePr": null,
|
|
"evidenceRun": "https://github.com/4gray/iptvnator/actions/runs/37184230956",
|
|
"measuredWith": "pnpm run perf:journeys (ubuntu-latest, xvfb), identical in all 55 measured iterations of 11 master runs, 2026-10-03 to 2026-10-04"
|
|
},
|
|
"renderer.layoutShiftScore": {
|
|
"value": 0,
|
|
"unit": "score",
|
|
"slack": 0,
|
|
"note": "guard only, not validated: no PR has yet shown that lowering this counter lowers the journey wall-clock (Principle 3)",
|
|
"updatedAt": "2026-10-04",
|
|
"evidencePr": null,
|
|
"evidenceRun": "https://github.com/4gray/iptvnator/actions/runs/37184230956",
|
|
"measuredWith": "pnpm run perf:journeys (ubuntu-latest, xvfb), identical in all 55 measured iterations of 11 master runs, 2026-10-03 to 2026-10-04"
|
|
},
|
|
"renderer.layoutShiftScoreSettled": {
|
|
"value": 0,
|
|
"unit": "score",
|
|
"slack": 0,
|
|
"note": "guard only, not validated: no PR has yet shown that lowering this counter lowers the journey wall-clock (Principle 3)",
|
|
"updatedAt": "2026-10-04",
|
|
"evidencePr": null,
|
|
"evidenceRun": "https://github.com/4gray/iptvnator/actions/runs/37184230956",
|
|
"measuredWith": "pnpm run perf:journeys (ubuntu-latest, xvfb), identical in all 55 measured iterations of 11 master runs, 2026-10-03 to 2026-10-04"
|
|
},
|
|
"renderer.cdTicksToFirstCard": {
|
|
"value": 5,
|
|
"unit": "ticks",
|
|
"slack": 1,
|
|
"note": "one-tick race since #1931 moved Angular Material off the startup path: 5 in all 15 iterations of the three dispatched runs before it, 5, 5, 5, 5, 6 in #1929's journeys job after merging it (https://github.com/4gray/iptvnator/actions/runs/38476954719/job/115583649036)",
|
|
"updatedAt": "2026-10-13",
|
|
"evidencePr": 1929,
|
|
"evidenceRun": "https://github.com/4gray/iptvnator/actions/runs/38359088033",
|
|
"measuredWith": "pnpm run perf:journeys (ubuntu-latest, xvfb), identical in all 15 measured iterations of 3 runs of #1929 (zoneless, d88d00506)"
|
|
},
|
|
"renderer.cdTicksIdle30s": {
|
|
"value": 3,
|
|
"unit": "ticks",
|
|
"slack": 0,
|
|
"updatedAt": "2026-10-13",
|
|
"evidencePr": 1929,
|
|
"evidenceRun": "https://github.com/4gray/iptvnator/actions/runs/38359088033",
|
|
"measuredWith": "pnpm run perf:journeys (ubuntu-latest, xvfb), identical in all 15 measured iterations of 3 runs of #1929 (zoneless, d88d00506)"
|
|
}
|
|
},
|
|
"open-source": {
|
|
"main.mockHttpRequestsToSettled": {
|
|
"value": 1,
|
|
"unit": "requests",
|
|
"slack": 0,
|
|
"note": "guard only, not validated: no PR has yet shown that lowering this counter lowers the journey wall-clock (Principle 3)",
|
|
"updatedAt": "2026-10-04",
|
|
"evidencePr": null,
|
|
"evidenceRun": "https://github.com/4gray/iptvnator/actions/runs/37184230956",
|
|
"measuredWith": "pnpm run perf:journeys (ubuntu-latest, xvfb), identical in all 55 measured iterations of 11 master runs, 2026-10-03 to 2026-10-04"
|
|
},
|
|
"renderer.ipcCallsToFirstPage": {
|
|
"value": 17,
|
|
"unit": "calls",
|
|
"slack": 0,
|
|
"note": "guard only, not validated: no PR has yet shown that lowering this counter lowers the journey wall-clock (Principle 3)",
|
|
"updatedAt": "2026-10-04",
|
|
"evidencePr": null,
|
|
"evidenceRun": "https://github.com/4gray/iptvnator/actions/runs/37184230956",
|
|
"measuredWith": "pnpm run perf:journeys (ubuntu-latest, xvfb), identical in all 55 measured iterations of 11 master runs, 2026-10-03 to 2026-10-04"
|
|
},
|
|
"renderer.layoutShiftScore": {
|
|
"value": 0,
|
|
"unit": "score",
|
|
"slack": 0,
|
|
"note": "guard only, not validated: no PR has yet shown that lowering this counter lowers the journey wall-clock (Principle 3)",
|
|
"updatedAt": "2026-10-11",
|
|
"evidencePr": null,
|
|
"evidenceRun": "https://github.com/4gray/iptvnator/actions/runs/38147072417",
|
|
"measuredWith": "pnpm run perf:journeys (ubuntu-latest, xvfb), 0 with no shift recorded in all 5 measured iterations of PR #1895 (d2cb9445d), which slides the content frame and header controls instead of jumping (was 0.233)"
|
|
},
|
|
"renderer.cdTicksToFirstPage": {
|
|
"value": 9,
|
|
"unit": "ticks",
|
|
"slack": 0,
|
|
"updatedAt": "2026-10-13",
|
|
"evidencePr": 1929,
|
|
"evidenceRun": "https://github.com/4gray/iptvnator/actions/runs/38359088033",
|
|
"measuredWith": "pnpm run perf:journeys (ubuntu-latest, xvfb), identical in all 15 measured iterations of 3 runs of #1929 (zoneless, d88d00506)"
|
|
}
|
|
},
|
|
"playback": {
|
|
"renderer.httpRequestsToPlaying": {
|
|
"value": 2,
|
|
"unit": "requests",
|
|
"slack": 0,
|
|
"note": "guard only, not validated: no PR has yet shown that lowering this counter lowers the journey wall-clock (Principle 3)",
|
|
"updatedAt": "2026-10-04",
|
|
"evidencePr": null,
|
|
"evidenceRun": "https://github.com/4gray/iptvnator/actions/runs/37184230956",
|
|
"measuredWith": "pnpm run perf:journeys (ubuntu-latest, xvfb), identical in all 55 measured iterations of 11 master runs, 2026-10-03 to 2026-10-04"
|
|
},
|
|
"renderer.layoutShiftScore": {
|
|
"value": 0.001,
|
|
"unit": "score",
|
|
"slack": 0,
|
|
"note": "guard only, not validated: no PR has yet shown that lowering this counter lowers the journey wall-clock (Principle 3)",
|
|
"updatedAt": "2026-10-04",
|
|
"evidencePr": null,
|
|
"evidenceRun": "https://github.com/4gray/iptvnator/actions/runs/37184230956",
|
|
"measuredWith": "pnpm run perf:journeys (ubuntu-latest, xvfb), identical in all 55 measured iterations of 11 master runs, 2026-10-03 to 2026-10-04"
|
|
}
|
|
},
|
|
"search": {
|
|
"renderer.ipcCallsPerSearch": {
|
|
"value": 1,
|
|
"unit": "calls",
|
|
"slack": 0,
|
|
"note": "guard only, not validated: no PR has yet shown that lowering this counter lowers the journey wall-clock (Principle 3)",
|
|
"updatedAt": "2026-10-12",
|
|
"evidencePr": 1899,
|
|
"evidenceRun": "https://github.com/4gray/iptvnator/actions/runs/38165392046",
|
|
"measuredWith": "pnpm run perf:journeys (ubuntu-latest, xvfb), identical in all 18 measured iterations of 3 runs of #1899 (attempts 1-3), and in all 816 J4 iterations of the 136 CI journey jobs since #1816"
|
|
},
|
|
"renderer.sqlStatementsPerSearch": {
|
|
"value": 2,
|
|
"unit": "statements",
|
|
"slack": 0,
|
|
"note": "guard only, not validated: no PR has yet shown that lowering this counter lowers the journey wall-clock (Principle 3)",
|
|
"updatedAt": "2026-10-12",
|
|
"evidencePr": 1899,
|
|
"evidenceRun": "https://github.com/4gray/iptvnator/actions/runs/38165392046",
|
|
"measuredWith": "pnpm run perf:journeys (ubuntu-latest, xvfb), identical in all 18 measured iterations of 3 runs of #1899 (attempts 1-3), and in all 816 J4 iterations of the 136 CI journey jobs since #1816"
|
|
}
|
|
}
|
|
}
|
|
}
|