Skip to content

Bug 2057561 - Caching derived scatter data (Fix 2) - #9750

Open
davidmiculit wants to merge 1 commit into
mozilla:masterfrom
davidmiculit:feat/2057561-fix2
Open

Bug 2057561 - Caching derived scatter data (Fix 2)#9750
davidmiculit wants to merge 1 commit into
mozilla:masterfrom
davidmiculit:feat/2057561-fix2

Conversation

@davidmiculit

@davidmiculit davidmiculit commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Bug 2057561 - Improve frontend performance on Graphs View

componentDidUpdate runs flatMap/forEach/some/slice chains on every render, including hover/highlight changes.
Fix: Cache derived series in instance fields keyed by a shallow signature of inputs (testData length + visibility flags + timeRange). Only recompute when that signature changes. No need to refactor to hooks.

Before:
Screenshot 2026-07-31 at 12 58 42

After:
Screenshot 2026-07-31 at 13 00 19

@netlify

netlify Bot commented Aug 3, 2026

Copy link
Copy Markdown

Deploy Preview for treeherder ready!

Name Link
🔨 Latest commit 808f816
🔍 Latest deploy log https://app.netlify.com/projects/treeherder/deploys/6a70730ae13d51000847af9d
😎 Deploy Preview https://deploy-preview-9750--treeherder.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

return data.reduce((max, p) => (p.y > max ? p.y : max), data[0].y);
};

_dataKey = (props) => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are they named with _ ?

@esanuandra

Copy link
Copy Markdown
Collaborator

There could be some stale-cache bugs, waiting on confirmation for that.

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