Reorder the `all` shorthand expansion to improve cache locality of transition diffing
Categories
(Core :: CSS Parsing and Computation, enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox149 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(2 external files)
Something that Denis found while looking at bug 2014110 was that the all shorthand expansion order matters for that benchmark, because it uses tons of transition: all things.
emilio: Really? I did one too and it seemed to help haha
https://perf.compare/subtests-compare-results?baseRev=a86b223c8709baffd780da8ab1080065e0e74427&baseRepo=try&newRev=34caa376b4aca8955e8aeaf30d552aad58348724&newRepo=try&framework=13&baseParentSignature=5351289&newParentSignature=5351289&test_version=student-t&replicates=
denispal: I think I did... But then realized that for the most part it didn't matter because we sort them here, so the LonghandId order ended up being effectively the same...
denispal: oh! we declare all before sorting by variant here... So alright, it could matter in the end
I had looked at the table order, but only looked at LonghandId order, and we do the longhand sorting after declaring all...
| Assignee | ||
Comment 1•9 months ago
|
||
When diffing properties to start transitions, it's very common to
iterate over the all shorthand, because it's the default
transition-property.
When this happens, it's better to hit the properties in a way they're
close in memory. This shows up in speedometer, see bug 2014110.
Sort the all longhands by struct order for this.
Updated•9 months ago
|
| Assignee | ||
Comment 2•9 months ago
|
||
Doesn't need code generation, move it close to the
NonCustomPropertyIterator.
| Assignee | ||
Updated•9 months ago
|
https://hg.mozilla.org/mozilla-central/rev/4f19bf44e4ef
https://hg.mozilla.org/mozilla-central/rev/a0719d109c2f
Updated•9 months ago
|
Description
•