Skip to content

Speed up the release plan table with many packages - #611

Merged
anfimovdm merged 1 commit into
AlmaLinux:masterfrom
eabdullin1:release-plan-table-perf
Nov 9, 2026
Merged

anfimovdm merged 1 commit into
AlmaLinux:masterfrom
eabdullin1:release-plan-table-perf

Conversation

@eabdullin1

Copy link
Copy Markdown
Contributor

Problem

A release plan with ~1000 packages opens for several seconds and the page lags: the table renders every package at once (a select, checkboxes, tooltips and buttons per row), NotNotarizedPackages() filters all packages in every row on each render, and destination options are rebuilt for every package.

Changes

  • Virtual scroll for the packages table: only the visible rows are rendered. The table still scrolls with the page (virtual-scroll-target="body"), and switches to its own scroll in fullscreen. Rows get their own key since packages have no id and a package can be added twice.
  • Not notarized packages are a computed property instead of a method called per row; the trustness badge is computed once per row; destination options are built once per arch, shared between rows and frozen so they aren't wrapped into reactive proxies; repository names for the "taken from / exists in" badge come from a map.
  • Force selection fixes: unchecking a row that isn't in selected used indexOf() === -1 and duplicated the list; "Force all" made selected the same array as the table rows.
  • Destination check looks at every package. It used to keep only the result of the last select ref, so Save/Commit passed with an empty destination in any other row. Rows outside the virtual scroll have no select to validate, so the check uses the data and still highlights the rendered selects.

Checks

In the browser against release 67541 (1148 packages, production data, read only), in view and edit mode, comparing the old and the new component on the same data:

  • getPlan(), destinations, destination options, badges and columns are identical;
  • scrolling to the last package, search, fullscreen, add/delete package, Force / Force all;
  • timings (browser pane was in background, so approximate):
before after
first render 4.7–6 s 12–73 ms
clearing search 3.1 s 16 ms
search 189 ms 24 ms
Force all 52 ms 3 ms

🤖 Generated with Claude Code

The table rendered every package at once with a select, checkboxes and
tooltips in each row, and called NotNotarizedPackages() in every row,
so a plan with ~1000 packages took seconds to open or to reset the
search. Render only the visible rows with a virtual scroll that keeps
scrolling with the page, compute the not notarized packages once, build
destination options once per arch and the trustness badge once per row.

Also fix the force selection: unchecking a row that isn't selected
duplicated the selected list and "Force all" made it the same array as
the table rows. The destination check now looks at every package
instead of only the last rendered select.
@anfimovdm
anfimovdm merged commit 0f8191b into AlmaLinux:master Nov 9, 2026
3 checks 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.

2 participants