Closed
Bug 1488462
Opened 7 years ago
Closed 7 years ago
Big slowdown happening every x minutes
Categories
(Firefox :: New Tab Page, defect, P1)
Firefox
New Tab Page
Tracking
()
People
(Reporter: julienw, Assigned: Mardak)
References
Details
(Keywords: regression, Whiteboard: [fxperf:p1])
Attachments
(3 files)
Since recently I found that I got a big slowdown every some minutes.
I took this profile:
https://perfht.ml/2LWxzyX
(sorry, it's a bit big to load, but I zoomed in the interesting part and toggled the "inverted tree" setting)
This points to the direction of ActivityStream that maybe calls toHash a bit too much.
Florian pointed me to this code [1]. Maybe this code could be converted to a for loop where the the filtering operation could happen just the right amount of time to get numItems items, and break early.
[1] https://searchfox.org/mozilla-central/rev/c3fef66a5b211ea8038c1c132706d02db408093a/toolkit/modules/NewTabUtils.jsm#826-838
Reporter | ||
Comment 1•7 years ago
|
||
Discussing with Florian more, I realized that today I did a lot of screenshots through the devtools to review a patch, and because screenshots are data URL (so, big URLs), that's likely the reason. So maybe data-url should be handled differently too.
Comment 2•7 years ago
|
||
70% of the time here https://perfht.ml/2PBSnOn is spent in the hashing function called by BlockedLinks_isBlocked https://searchfox.org/mozilla-central/rev/c3fef66a5b211ea8038c1c132706d02db408093a/toolkit/modules/NewTabUtils.jsm#504
BlockedLinks_isBlocked should probably return early for data: urls.
Is it expected that _processHighlights is called 15 times here? It seems to be in reaction to a 'messsage' DOM event, do we know what message this is?
Whiteboard: [fxperf]
Updated•7 years ago
|
Assignee: nobody → edilee
Iteration: --- → 64.1 (Sep 14)
Priority: -- → P1
Updated•7 years ago
|
status-firefox64:
--- → affected
Updated•7 years ago
|
Whiteboard: [fxperf] → [fxperf:p1]
Comment 3•7 years ago
|
||
Ed, this is marked as a P1 bug affecting the 63 release, do you have a status update on this one? Will you request an uplift to beta? Thanks
Flags: needinfo?(edilee)
Updated•7 years ago
|
Iteration: 64.1 (Sep 14) → 64.2 (Sep 28)
Updated•7 years ago
|
Iteration: 64.2 (Sep 28) → 64.3 (Oct 12)
Assignee | ||
Comment 4•7 years ago
|
||
This was regressed by bug 1433230 when downloads were added to highlights
Depends on: 1433230
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/activity-stream
https://github.com/mozilla/activity-stream/commit/eb19a91c737463777b6ebcb9a0f1481b20c8335f
Fix Bug 1488462 - Big slowdown happening every x minutes (#4459)
Directly pick the first download result and add a type without calling processHighlights, which checks blocked links.
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Keywords: regression
Updated•7 years ago
|
Blocks: 1433230
status-firefox62:
--- → wontfix
status-firefox-esr60:
--- → unaffected
tracking-firefox64:
--- → +
No longer depends on: 1433230
Updated•7 years ago
|
Assignee | ||
Comment 7•7 years ago
|
||
Target Milestone: --- → Firefox 64
Assignee | ||
Comment 8•7 years ago
|
||
julienw, do you still have the profile that this was happening with (and was it still causing slowdown) to test with nightly 20181003223518 or newer?
Flags: qe-verify+
Flags: needinfo?(felash)
Comment 9•7 years ago
|
||
Kate, this is a tracked regression for 63, we'll need the fix to be uplifted to Beta, thanks!
Flags: needinfo?(khudson)
QA Contact: tspurway
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Comment on attachment 9014851 [details]
Bug 1488462 - Big slowdown happening every x minutes
[Beta/Release Uplift Approval Request]
Feature/Bug causing the regression: Bug 1488462
User impact if declined: Significant performance regression for users
Is this code covered by automated tests?: Yes
Has the fix been verified in Nightly?: Yes
Needs manual test from QE?: No
If yes, steps to reproduce:
List of other uplifts needed: None
Risk to taking this patch: Low
Why is the change risky/not risky? (and alternatives if risky): Small code change
String changes made/needed: no
Flags: needinfo?(khudson)
Attachment #9014851 -
Flags: approval-mozilla-beta?
Comment 12•7 years ago
|
||
Comment 13•7 years ago
|
||
Comment on attachment 9014851 [details]
Bug 1488462 - Big slowdown happening every x minutes
Trivial patch fixing a major performance hit in Firefox 63, uplift approved for 63 beta 13, thanks.
Attachment #9014851 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Updated•7 years ago
|
QA Contact: tspurway
Comment 14•7 years ago
|
||
bugherder uplift |
Flags: in-testsuite+
Reporter | ||
Comment 16•7 years ago
|
||
(In reply to Ed Lee :Mardak (PTO Sep 15 - Oct 7) from comment #8)
> julienw, do you still have the profile that this was happening with (and was
> it still causing slowdown) to test with nightly 20181003223518 or newer?
yes, that's my main profile. I just opened some data-URLs and I'll report if I see anything suspicious.
Flags: needinfo?(felash)
Updated•7 years ago
|
Flags: qe-verify+
Updated•6 years ago
|
Component: Activity Streams: Newtab → New Tab Page
You need to log in
before you can comment on or make changes to this bug.
Description
•