Testcase from bug 1945382 spends superlinear time "Layout cleanup" with reloading the page after generating N stylesheets (N=100k and above)
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox137 | --- | fixed |
People
(Reporter: mayankleoboy1, Assigned: emilio)
References
Details
Attachments
(2 files)
Open the attached testcase. (Original "nested stylesheet_no BLOB" from bug 1945382)
Enter 100k , 200k, 300k and press enter
Wait for the stylesheets to get generated. May take a few 100ms which is amazing!
Reload the page using F5
100K: https://share.firefox.dev/4gRUHgA (3s)
200K: https://share.firefox.dev/3CSyZeA (11.6s)
300K: https://share.firefox.dev/3XiW5C1 (36s + 30s)
Maybe something to improve?
Reporter | ||
Comment 1•23 days ago
|
||
Assignee | ||
Comment 2•22 days ago
|
||
Removing from the front is expensive anyways because it reallocates the
array.
Updated•22 days ago
|
Assignee | ||
Updated•22 days ago
|
Reporter | ||
Comment 3•22 days ago
•
|
||
Another case is to enter 100k and generate the stylesheets. Then without reloading, enter 1 and press enter.
100K
- Nightly: https://share.firefox.dev/4gYaxpO (6.5s)
- Chrome: https://share.firefox.dev/3D9YPKZ (200ms)
200K
Nightly: https://share.firefox.dev/41bLDgJ (40s)
Chrome: https://share.firefox.dev/435Cbhw (340ms)
Comment 5•21 days ago
|
||
bugherder |
Reporter | ||
Comment 6•20 days ago
|
||
300K
Close the tab: https://share.firefox.dev/4kkCIlK (115ms)
Reloading the tab: https://share.firefox.dev/41ihRXB (35s around CC)
So the time spent in Layout/style is basically 0 now. The time spent in CC remains. . Not sure if a bug should be filed for the CC times.
But anyway, this bug is definitely fixed. Thanks Emilio!
Description
•