Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(Graph): Speed up rendering the component graph on workspace #8978

Merged
merged 4 commits into from
Jun 26, 2024

Conversation

luvkapur
Copy link
Member

@luvkapur luvkapur commented Jun 26, 2024

This PR speeds up the initial load time of the Component Dependencies Graph page by ~20x, from 1.5s to 65ms.
With this change we don't query the entire graph on the first load - which is very slow because we need to fetch the flattened dependencies to show metadata about each graph node (env, deprecated status, etc). Instead it first eagerly fetches just the graph ids and then lazily fetches the metadata for it and hydrates the graph in the background.

@luvkapur luvkapur enabled auto-merge (squash) June 26, 2024 21:31
@luvkapur luvkapur merged commit 20e9cd8 into master Jun 26, 2024
11 checks passed
@luvkapur luvkapur deleted the ws-dependencies-graph-tab-perf-improvement branch June 26, 2024 22:24
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