Testcase (with many XML files) spends 12s in parent-process and content-process on reloading in the background. Chrome reloads it instantly (slow blob URL unregisteration?)
Categories
(Core :: DOM: File, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox137 | --- | fixed |
People
(Reporter: mayankleoboy1, Assigned: baku)
References
Details
Attachments
(2 files)
Open the attached testcase
Enter 50000 and press generate
Start the profiler and reload the page.
Nightly: https://share.firefox.dev/3Wy5Xrf (12s on parent-process + 12s on content-process)
Chrome: https://share.firefox.dev/42qK9RQ (instant)
Profile with all threads+ IO + IPC: https://share.firefox.dev/40O0vSd
Firefox to generate the xmls: https://share.firefox.dev/3CzEoGW
No idea how real worlds this testcase is. I thought of the testcase and asked chatpgpt to write the HTML. Feel free to INVALID/WONTFIX this bug.
Reporter | ||
Updated•22 days ago
|
Reporter | ||
Comment 1•22 days ago
|
||
Profile with 100000 xml : https://share.firefox.dev/4hMwWrh
Comment 2•22 days ago
|
||
Not sure why this is streams? I only see some blobs and layouts.
Reporter | ||
Updated•22 days ago
|
Updated•20 days ago
|
Comment 4•10 days ago
|
||
I believe DOM: File is the appropriate component.
Removing performance impact flag as this is a testcase and not and end-user reported issue.
Andrea might have ideas here.
Assignee | ||
Updated•9 days ago
|
Assignee | ||
Comment 5•9 days ago
|
||
Reporter | ||
Comment 6•9 days ago
|
||
Profile of generating 50k XML's with all threads + All IO + IPC: https://share.firefox.dev/4gtFJgv
Comment 7•9 days ago
|
||
The testcase is very unrealistic, but at least we can fix some of it easily.
Reporter | ||
Comment 8•9 days ago
|
||
yeah, that has been my driver for creating these testcase - to see if there is anything that is obviously bad/quadratic/easily fixable.
Comment 10•8 days ago
|
||
Backed out for causing build bustages @ BlobURLProtocolHandler.cpp
Backout link: https://hg.mozilla.org/integration/autoland/rev/82dfa270f6bbdb99fb5e0f377d4ac631ba2efe95
Assignee | ||
Updated•8 days ago
|
Comment 11•8 days ago
|
||
Comment 13•8 days ago
|
||
bugherder |
Reporter | ||
Comment 14•8 days ago
|
||
This is what i get with 50K XMLs on nightly: https://share.firefox.dev/417JjbG
So, much improved.
Comment 15•6 days ago
|
||
Looks like there are still some easy wins. ContentParent::mBlobURLs has rather slow data structure for this.
And ContentParent::ValidatePrincipal is taking lots of time. Both in the parent process. The first one might be easy to fix, the latter would need some thinking.
Description
•