stylo: sequential cascade performance 3x worse than Gecko on Obama testcase

NEW
Assigned to

Status

()

Core
CSS Parsing and Computation
P1
normal
3 months ago
3 months ago

People

(Reporter: bholley, Assigned: bholley)

Tracking

(Depends on: 2 bugs, Blocks: 2 bugs)

Firefox Tracking Flags

(Not tracked)

Details

I've been optimizing selector matching, but haven't started in too much on the cascade. The myspace testcase is pretty light on the cascade, whereas the obama testcase exercises it more.

I did some profiling today and found a bunch of stuff we can do here.
I did my usual trick of hacking up a patch to make some stuff out of line: https://github.com/bholley/gecko/tree/out_of_line_cascade

That gives us this profile here: https://perfht.ml/2oU1fRY , which shows us spending 35ms in the cascade. Gecko spends about 15-18ms in WalkRuleTree for the same testcase.
Depends on: 1360881
Depends on: 1360883
Depends on: 1361126
Depends on: 1361372
Depends on: 1361392
Depends on: 1360889
No longer depends on: 1361392
You need to log in before you can comment on or make changes to this bug.