Skip to content

perf(demo-admin): memoize dashboard derivations#1064

Draft
Kuhai9801 wants to merge 1 commit into
Stellar-Mail:mainfrom
Kuhai9801:perf/demo-admin-dashboard-latency
Draft

perf(demo-admin): memoize dashboard derivations#1064
Kuhai9801 wants to merge 1 commit into
Stellar-Mail:mainfrom
Kuhai9801:perf/demo-admin-dashboard-latency

Conversation

@Kuhai9801

Copy link
Copy Markdown

Summary

  • memoize demo-admin table column configs so table sorting work is not invalidated by unrelated parent state changes
  • memoize active preset, selected row, campaign assignment, and validation summary/group derivations
  • reduce validation grouping from repeated filter/sort passes to one sorted pass grouped by severity

Closes #943

Performance note

The hotspot was dashboard parent/selection state recreating column arrays and validation derived data on each render, which forced AdminDataTable sorting memoization and validation grouping to rerun even when the table data or issue list was unchanged. This keeps those derived values stable while preserving the existing empty, populated, and validation-result behavior.

Validation

  • git diff --check

@Kuhai9801 Kuhai9801 marked this pull request as draft June 20, 2026 02:46
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.

[Existing app][Demo Admin Dashboard] Trim render work and loading latency

1 participant