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

Assigned to



CSS Parsing and Computation
3 months ago
3 months ago


(Reporter: bholley, Assigned: bholley)


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

Firefox Tracking Flags

(Not tracked)


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:

That gives us this profile here: , 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.