Closed Bug 1853258 Opened 1 year ago Closed 1 year ago

has-complexity times out on opt builds

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: dshin, Assigned: dshin)

References

Details

Attachments

(3 files)

Introduced here

Severity: -- → S3
Depends on: has-pseudo

From local opt build with modified has-complexity.html that runs the highlighted portion on button click, but with 10000 elements: https://share.firefox.dev/3ECI0FM

Right.. so the invalidator is trying to find .subject, and running across all instances of #container > span, which is in the same subtree as .subject from main.

See Also: → 1853701
Depends on: 1858720
Blocks: 1858743
Blocks: has-pseudo
No longer depends on: has-pseudo

This is slightly more efficient as invalidations are added after duplicates have been removed.
We will be running some matching that we definitely do not want to run on duplicates.

Assignee: nobody → dshin
Status: NEW → ASSIGNED

Required for upcoming optimization.
Also use the added information to move invalidation acceptance logic.

Depends on D191305

There are cases where we can run a selector match to realize that some DOM mutations
will not make a difference in the relative selector match state, which avoids
O(n^2) behaviour under some circumstances.

Depends on D191306

Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/43c5a48d4a2f Part 1 - Refactor where additional relative selector invalidations are added. r=emilio,layout-reviewers https://hg.mozilla.org/integration/autoland/rev/4866d633239c Part 2 - Provide which DOM mutation is happening for relative selector invalidation. r=emilio https://hg.mozilla.org/integration/autoland/rev/5e5e1e48b9bb Part 3 - Optimize invalidating relative selectors on DOM mutation. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
Regressions: 1861385
Regressions: 1867893
See Also: → 1870431
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: