Firefox is 2x slower on artificial "Self-referencing Shadow DOM" testcase
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox147 | --- | fixed |
People
(Reporter: mayankleoboy1, Assigned: smaug)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Open the attached testcase
enter 1000 and press enter
chrome: https://share.firefox.dev/4jDxfq0 (13s)
Nightly: https://share.firefox.dev/3WGviix (24s)
Testcase generated by chatgpt on my prompt. No idea how realistic this testcase is. But i hope that this may potentially highlight some hotspots.
As usual, feel free to mark INVALID/WONTFIX
| Reporter | ||
Comment 1•1 year ago
|
||
Sean, any thoughts on the profile and if it highlights anything worth optimizing?
Comment 2•1 year ago
|
||
Nothing really stands out to me. I see we did a bunch of DOM works with calling appendChild, I am not sure how we can optimize anything in the call chain.
Olli, do you see anything?
| Reporter | ||
Comment 3•1 year ago
•
|
||
1000 elements
Profile with latest Nightly: https://share.firefox.dev/4kF4M3J (24s)
| Reporter | ||
Comment 4•1 year ago
|
||
This is what I get today: https://share.firefox.dev/4i7S2AT (19.5s + CC) , which is very different and faster than the previous profile. No idea what changed in the interim period.
| Reporter | ||
Comment 5•6 months ago
|
||
latest profile: https://share.firefox.dev/47mauTk (22s + cleanup)
| Reporter | ||
Comment 6•6 months ago
|
||
and this is with adding idlecallback in each iteration: https://share.firefox.dev/3Ln0wbI (70 seconds)
| Assignee | ||
Comment 7•6 months ago
|
||
We have a flag which can be used here to improve this quite a bit, assuming I read the test and profile correctly.
(testing...)
| Assignee | ||
Comment 8•6 months ago
|
||
Updated•6 months ago
|
| Assignee | ||
Comment 9•6 months ago
|
||
The patch helps ~25%.
There might be still other things to optimize
Comment 10•6 months ago
|
||
Comment 11•6 months ago
|
||
| bugherder | ||
| Reporter | ||
Comment 12•6 months ago
•
|
||
Latest: https://share.firefox.dev/49NbfGz / https://share.firefox.dev/3LvMipa (17s + 5.5s in cleanup)
Olli, anything else that seems worth fixing?
| Assignee | ||
Comment 13•6 months ago
•
|
||
Other things would happen in other bugs. We might figure out some optimization for nsIMutationObserver. And clean up part is being handled elsewhere (possibly no specific bugs quite yet).
Updated•5 months ago
|
Description
•