-
Notifications
You must be signed in to change notification settings - Fork 8
Improve PercentileLineChart perf (and thus Summary page) by over 20x #469
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
Conversation
WalkthroughThe Changes
Possibly related PRs
Suggested reviewers
Poem
Warning Review ran into problems🔥 ProblemsGitHub Actions and Pipeline Checks: Resource not accessible by integration - https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-repository. Please grant the required permissions to the CodeRabbit GitHub App under the organization or repository settings. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
ken-zlai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is insane - amazing! loading the summary page is super snappy now. great job!
…lly do not use `$derived` to improvement performance by over 20x (>1100ms to <50ms)
3030ba0 to
7995fa8
Compare
Summary
By extracting
seriesfrom the markup (which made it reactive) and intentionally NOT using$derived, rendering performance ofPercentileLineChartimproved by over 20x (>1100msdown to<50ms).This makes navigating to the Summary tab MUCH better (before we would sometimes hit the browser "Are you sure you want to wait" prompts).
$state.opaque()runes was being considered that could have helped here, but it was decided to not be the right abstraction. (I'm waiting on a solution to fix LayerChart's force simulations that have a perf regression in Svelte 5 due to granular reactivity / proxy creation)Before
CleanShot.2025-03-05.at.15.03.33-converted.mp4
After
CleanShot.2025-03-05.at.15.09.37-converted.mp4
Checklist
Summary by CodeRabbit