Closed Bug 1513512 Opened 6 years ago Closed 6 years ago

A gfx demo spends most of its time (250ms) in styling

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1493420

People

(Reporter: mayankleoboy1, Unassigned)

Details

Attachments

(2 files)

Attached file surane_5000.html
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0 Steps to reproduce: This is the "surane" demo which is used to test WR etc. IF you change the container.innerHTML to 5000 , the demo spends 300ms in styling Not sure if this is expected or not. Feel free to WONTFIX this as needed. Actual results: lots of time spend in styling. Array 5000 : https://perfht.ml/2SJUmC2 ray 500 : https://perfht.ml/2SG5EqM Expected results: maybe not so
Component: General → CSS Parsing and Computation
Attached file surane_500.html
the default testcase, which spends more time in gfx as expected
Summary: A gfx demo spends most of its time (300ms) in styling → A gfx demo spends most of its time (250ms) in styling
Here is the sequential stylo profile of the 5000 case : https://perfht.ml/2SG7mbG
Looks like the same root cause / fix as bug 1493420.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE

This should look much better now, mind confirming? The testcase in comment 0 still spends a long time in styling, and I think I could spend some time trying to optimize out various bits here and there.

Please reopen if you still think it's bad and I'll take a look :)

Flags: needinfo?(mayankleoboy1)

Profile with 5000 : http://bit.ly/2WxU4DM . Time reduced from ~300ms to ~90ms in styling.
I dont know if optimising further is worth pursuing or not . For reference, Chrome performs worse than Nightly.

Flags: needinfo?(mayankleoboy1) → needinfo?(emilio)

Great. That works for me, for now at least, gotta do other stuff :)

Flags: needinfo?(emilio)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: