Skip to content

perf(interrupt-rotation): parallelize slow sections with fragments - #74

Merged
sfc-gh-bnisco merged 2 commits into
mainfrom
speed-up-interrupt-rotation-parallel-fragments
Jul 27, 2026
Merged

perf(interrupt-rotation): parallelize slow sections with fragments#74
sfc-gh-bnisco merged 2 commits into
mainfrom
speed-up-interrupt-rotation-parallel-fragments

Conversation

@sfc-gh-bnisco

Copy link
Copy Markdown
Collaborator

Previously the page fetched the full open issue/PR snapshot synchronously at the top of the script and fetched the monitored-repo PRs inline mid-page, so both blocked the main thread in series before the existing parallel fragments were even dispatched. The heavy CI-artifact downloads never overlapped with the issue/PR fetch.

Move every slow data source into a parallel=True fragment and reduce the main body to fast chrome (title, sidebar, header, dividers). The scattered action items are grouped into two fragments that share the cached issue/PR builder, so the snapshot is still fetched once but now overlaps with the CI metrics, flaky tests, monitored-repo PRs, reported bugs, and repro checks. Wall-clock drops from the sum of the blocking fetches to roughly the slowest single one.

Visual order, help text, and column configs are unchanged.

sfc-gh-bnisco and others added 2 commits July 27, 2026 10:31
Previously the page fetched the full open issue/PR snapshot synchronously at
the top of the script and fetched the monitored-repo PRs inline mid-page, so
both blocked the main thread in series before the existing parallel fragments
were even dispatched. The heavy CI-artifact downloads never overlapped with
the issue/PR fetch.

Move every slow data source into a parallel=True fragment and reduce the main
body to fast chrome (title, sidebar, header, dividers). The scattered action
items are grouped into two fragments that share the cached issue/PR builder,
so the snapshot is still fetched once but now overlaps with the CI metrics,
flaky tests, monitored-repo PRs, reported bugs, and repro checks. Wall-clock
drops from the sum of the blocking fetches to roughly the slowest single one.

Visual order, help text, and column configs are unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The two action-item fragment docstrings claimed the snapshot was "grouped
into a single parallel fragment so it is fetched once", but the snapshot is
actually read from two separate fragments. Clarify that the fetch-once
guarantee comes from st.cache_data memoization, and document why the split
into two fragments exists: it preserves the original page order (issue tables
at the top, PR tables at the bottom, independent-source sections in between)
so a future reader does not collapse it and reorder the page.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sfc-gh-bnisco
sfc-gh-bnisco marked this pull request as ready for review July 27, 2026 17:51
@sfc-gh-bnisco
sfc-gh-bnisco merged commit e7e3dae into main Jul 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant