nsIFrame::(Add|Remove)DisplayItem() is slow
Categories
(Core :: Web Painting, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: mikokm, Assigned: mikokm)
References
(Blocks 1 open bug)
Details
(Keywords: perf-alert)
Attachments
(3 files, 1 obsolete file)
This shows up on profiles a lot. We could merge the frame property |nsIFrame::DisplayItems| with a member variable |nsIFrame::mDisplayItemData| that holds DisplayItemData, or swap them to speed up WebRender that does not use DisplayItemData.
Updated•6 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Changing the frame property to member variable gives a massive performance boost in various tests: https://treeherder.mozilla.org/perfherder/compare?originalProject=try&originalRevision=a269eee28a93d4baaf366816c799df2262b4c755&newProject=try&newRevision=c86901b25aa5e814daf2f6a76d8f582e6a53c1c0&framework=1
Assignee | ||
Comment 2•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D104059
Assignee | ||
Comment 4•4 years ago
|
||
Depends on D106164
Assignee | ||
Comment 5•4 years ago
|
||
Depends on D106165
Comment 7•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/fed61f8125da
https://hg.mozilla.org/mozilla-central/rev/d5fc307deac1
https://hg.mozilla.org/mozilla-central/rev/822a22e21e7a
https://hg.mozilla.org/mozilla-central/rev/d5b874ccd877
Comment 8•4 years ago
|
||
== Change summary for alert #28981 (as of Tue, 02 Mar 2021 04:42:14 GMT) ==
Improvements:
Ratio | Suite | Test | Platform | Options | Absolute values (old vs new) |
---|---|---|---|---|---|
12% | tp5o_scroll | windows10-64-shippable-qr | e10s stylo webrender-sw | 2.16 -> 1.91 | |
6% | tp5o_scroll | linux1804-64-shippable | e10s stylo | 1.71 -> 1.61 | |
6% | tp5o_scroll | linux64-shippable | e10s stylo | 1.41 -> 1.33 | |
4% | tp5o_scroll | linux1804-64-shippable-qr | e10s stylo webrender | 2.70 -> 2.58 | |
4% | tp5o_scroll | linux1804-64-shippable-qr | e10s stylo webrender | 2.67 -> 2.56 | |
3% | tp5o_scroll | linux1804-64-shippable-qr | e10s stylo webrender | 2.67 -> 2.58 |
For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=28981
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 9•4 years ago
|
||
Backed out as requested by miko for causing a perma-fail, backout link: https://hg.mozilla.org/integration/autoland/rev/2ed2319aa1d7eddd4448d88dc2bea5f3f013b2bc
Comment 10•4 years ago
|
||
Backout merged: https://hg.mozilla.org/mozilla-central/rev/2ed2319aa1d7
Assignee | ||
Comment 11•4 years ago
|
||
The backed out part was additional optimization that was based on a wrong assumption. We can keep this closed.
Updated•4 years ago
|
Updated•4 years ago
|
Description
•