Closed Bug 1384173 Opened 7 years ago Closed 7 years ago

Parsing long <style> elements can take a long time

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1384192

People

(Reporter: mstange, Unassigned)

Details

Here's a testcase which spends 40ms inside geckoservo::glue::Servo_StyleSheet_FromUTF8Bytes on my machine: http://tests.themasta.com/twitter-compact/twitter-main.html Profile: https://perfht.ml/2eL98d7 Non-stylo is even slower, I think, so this is not a regression. Maybe this could be made faster by splitting the string up and doing speculative parsing of chunks on multiple threads?
According to bug 1384192, it does seem to be a regression.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.