Repository navigation
fix(perf): add NFS/UI benchmark and related performance patches - #5898
christoph-jerolimov wants to merge 7 commits into
Conversation
Adds an opt-in benchmark that measures app tree creation, route resolution and route change time as the number of plugins, page extensions and entity content extensions grows. It is skipped unless the BENCH environment variable is set. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
Each route resolution matched the source location against the entire route tree. The cost grows with the number of routes in the app and is paid by every caller on every location change. The matches for the most recently used source locations are now cached. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
Each sidebar item created its own style hook, which attached a separate style sheet for every item. The hooks are now shared between all components with an equal sidebar config. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
Sidebar items re-render on every location change to update their active state. The content of the item is now memoized so that only the link itself is re-rendered. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
The filtered routes were a new array on every render, which made the memoization of the entity tabs and the selected sub route ineffective. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
Each Box in a sidebar item attached its own dynamic style sheet, three per item. None of them carried any styles, so they are replaced with plain elements. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
|
Skipping CI for Draft Pull Request. |
|
Pipeline controller notification This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration. Use |
|
/test all |
|
@christoph-jerolimov: No jobs can be run with The following commands are available to trigger optional jobs: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com> Co-authored-by: Cursor <cursoragent@cursor.com>
|
The container image build workflow finished with status: |
|
|
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |



Summary
yarn test:bench/BENCH=1) that measures app tree creation, route resolution, and route-change cost as plugins/pages/entity contents grow.@backstage/frontend-app-apito cache route matches per source location (upstream a499f55).@backstage/core-componentsto share sidebar item style hooks, memoize sidebar item content, and avoid per-item MUIBoxstyle sheets (upstream f7d2786, caee60b, 3343cfa).@backstage/plugin-catalogto memoize filtered entity content routes (upstream e7e1085).Test plan
yarn installsucceeds andyarn whyshows patch locators forfrontend-app-api,core-components, andplugin-catalogyarn test:bench(orBENCH=1 CI=1 yarn workspace app test:bench) runs and printsBENCHlinesMade with Cursor