Closed Bug 2069004 Opened 2 months ago Closed 2 months ago

Consider making selectors take elements by value.

Categories

(Core :: CSS Parsing and Computation, task, P3)

task

Tracking

()

RESOLVED FIXED
157 Branch
Tracking Status
firefox157 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

(Keywords: perf-alert)

Attachments

(1 external file)

This showed improvements in the bloom filter microbenchmarks etc, but were a lot more mixed in stylebench / speedometer, probably because I made the snapshot lookup unconditional during invalidation.

Filing this bug to track doing this (I think it's not hard if we shuffle some stuff around ElementWrapper).

Removes some unnecessary indirection. Locally this recovers the
regression, and then some.

We could keep the Clone bound if needed / avoid Copy. It's just a bit
annoying tho.

Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f1d2202bd64a https://hg.mozilla.org/integration/autoland/rev/35fde463eb65 Make selector matching pass elements by value. r=firefox-style-system-reviewers,dshin
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
QA Whiteboard: [qa-triage-done-c158/b157]

Perfherder has detected a talos performance change from push 35fde463eb6566afed79c7bb47d788de814dd06f.

No action is required from the author; this comment is provided for informational purposes only.

Improvement Test Platform Options Absolute values [old vs new]
10% perf_reftest_singletons bloom-basic-2.html (doc) linux2404-64-shippable e10s fission stylo webrender 42.54 ms -> 38.32 ms
10% perf_reftest_singletons bloom-basic.html (doc) linux2404-64-shippable e10s fission stylo webrender 42.42 ms -> 38.30 ms

Need Help or Information?

If you have any questions, please reach out to fbilt@mozilla.com. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

Keywords: perf-alert
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: