Rewrite custom property substitution to avoid re-tokenization.
Categories
(Core :: CSS Parsing and Computation, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox124 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
(Blocks 1 open bug)
Details
(Whiteboard: [sp3])
Attachments
(1 file)
This helps with bug 1850809.
Assignee | ||
Comment 1•11 months ago
|
||
This speeds up custom variable substitution by avoiding re-tokenizing,
and variable reference parsing by avoiding doing duplicate work.
This is a very noticeable improvement in the NewsSite subtests of
speedometer 3 (see comparison posted in bug 1879318 and the #perf-sp3
matrix channel). But it also probably helps most websites using lots of
variables, and the browser UI itself.
Finally, it also avoids some duplication. Now regular substitution and
fallback substitution is handled uniformly, which causes a progression
in some properties-and-values tests.
Assignee | ||
Comment 3•11 months ago
|
||
Here's a more up-to-date comparison with the latest version of the patch, still showing the progression: https://treeherder.mozilla.org/perfherder/compare?originalProject=try&originalRevision=970e5c74c608be1b96599215e9e1a71e5a7ee721&newProject=try&newRevision=11edd8eb0b3ac80c195fc825f472d0062d728c44
Updated•11 months ago
|
Updated•11 months ago
|
Updated•8 months ago
|
Description
•