Skip to content

perf(ui): reuse existing instances when filtering applications - #6043

Open
Aminark wants to merge 1 commit into
codecentric:masterfrom
Aminark:perf/filter-existing-dashboard-instances
Open

Aminark wants to merge 1 commit into
codecentric:masterfrom
Aminark:perf/filter-existing-dashboard-instances

Conversation

@Aminark

@Aminark Aminark commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Searching the application list used to rebuild an Application for each service and an Instance for every match. Their constructors create Axios clients and install interceptors. The view then immediately flattened those new objects to get the instance list it needed for grouping.

Filter the instances already present in the store. In a local render with 100 applications and three instances per application, one search matching 20 applications created 160 Axios clients before this change and zero afterwards. The existing search test also checks that typing a matching query keeps the application visible without constructing a client.

@Aminark
Aminark requested a review from a team as a code owner November 30, 2026 15:44

This branch has not been deployed

No deployments
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