Open Bug 1505116 Opened 6 years ago Updated 2 years ago

Consider implementing more style system optimizations for quirks-mode

Categories

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

enhancement

Tracking

()

People

(Reporter: emilio, Unassigned)

References

Details

(Keywords: perf)

As a potential followup to bug 1499170, we could do the following in quirks mode documents: * Store the ascii-lowercase version of classes and ids in stylesheets. * Store the ascii-lowercase version of id and class on the element. This enables the following optimizations in quirks mode documents: * Using the bloom filter for classes and ids. * Fast string comparison / selector-matching. * Speed up the stylist rebuilds in the style system. The most annoying bit is that it requires a separate representation for classList, since that's always case-sensitive. Per discussion with Boris, it seems worth avoiding the complexity for now, given this isn't really applicable / worth for standards mode pages, but we should have telemetry for which percentage of documents are quirks mode, which change that...
P3 lacking evidence of greater need for this, I guess.
Keywords: perf
Priority: -- → P3
Depends on: 1505117
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.