Open
Bug 1478953
Opened 7 years ago
Updated 2 years ago
style.foo = bar changes are slow
Categories
(Core :: CSS Parsing and Computation, enhancement, P3)
Core
CSS Parsing and Computation
Tracking
()
NEW
Performance Impact | medium |
People
(Reporter: smaug, Unassigned)
References
Details
(Keywords: perf:responsiveness)
Attachments
(1 file)
1.57 KB,
text/html
|
Details |
A testcase I've used for profiling is
https://bugzilla.mozilla.org/attachment.cgi?id=8983177
"withoutmutationobserver" part is perhaps the most valid part for this bug.
this is with
export RUSTC_OPT_LEVEL=2
Mostly stylo but also some DOM attribute handling
Reporter | ||
Comment 2•7 years ago
|
||
https://perfht.ml/2LTXLuT is better link
Comment 3•7 years ago
|
||
Color is a bit more annoying than the rest of the properties... But yeah, there are improvements that could be made there.
Updated•7 years ago
|
Priority: -- → P3
Reporter | ||
Updated•7 years ago
|
Whiteboard: [qf]
Reporter | ||
Updated•7 years ago
|
Whiteboard: [qf] → [qf:p3:f67]
Reporter | ||
Comment 4•7 years ago
|
||
Another test.
On Linux 35% slower than Chrome.
Reporter | ||
Comment 5•6 years ago
|
||
https://perfht.ml/2MITpLD is from MotionMark.
Reporter | ||
Comment 6•6 years ago
|
||
So parsing stuff and attribute setting is 5-10% of MotionMark.
This should probably be qf:p1.
Whiteboard: [qf:p3:f67] → [qf:p1:f67]
Comment 7•6 years ago
|
||
smaug and/or emilio: from a [qf] categorization perspective, do you know whether this bug's use cases fall into pageload vs. responsiveness? (Or something else?)
(Intuitively it seems like "style.foo = bar" is primarily an after-page-load scenario, in response to interaction, though of course it could also be performed in an onload handler.)
Flags: needinfo?(bugs)
Reporter | ||
Comment 8•6 years ago
|
||
I haven't seen this badly during pageload.
Flags: needinfo?(bugs)
Whiteboard: [qf:p1:f67] → [qf:p2:responsiveness]
Reporter | ||
Comment 9•6 years ago
|
||
I guess stylo should do something faster. set_property looks particularly hot.
Updated•3 years ago
|
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•