Skip to content

Bug 2057561 - Reduce alert lookup time (Fix 1) - #9742

Open
davidmiculit wants to merge 1 commit into
mozilla:masterfrom
davidmiculit:feat/alert-lookup
Open

Bug 2057561 - Reduce alert lookup time (Fix 1)#9742
davidmiculit wants to merge 1 commit into
mozilla:masterfrom
davidmiculit:feat/alert-lookup

Conversation

@davidmiculit

Copy link
Copy Markdown
Collaborator

Bug 2057561 - Improve frontend performance on Graphs View

Inside series.data.map(...), every datapoint calls alertSummaries.find(...) and commonAlerts[0].find(...). With 5 series × 2,000 points × 50 alerts that's ~500k comparisons. Fix: Build two Maps keyed by push_id once per series before the map, lookups become O(1).

Before:
Screenshot 2026-07-31 at 15 08 30

After:
Screenshot 2026-07-31 at 15 13 14

@netlify

netlify Bot commented Jul 31, 2026

Copy link
Copy Markdown

Deploy Preview for treeherder ready!

Name Link
🔨 Latest commit 28287db
🔍 Latest deploy log https://app.netlify.com/projects/treeherder/deploys/6a6c95c55571680008398342
😎 Deploy Preview https://deploy-preview-9742--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.

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