Chromium Code Reviews
DescriptionAdd a fast path to CSSParserFastPaths for CSS transform rotate.
This cuts the script execution time of the Animometer > Leaves benchmark
by ~40%. Previously we were spending 10% of the time in the fast path
for transforms only to throw the result away entirely and then reparse
the value with the regular CSS parser which is much slower, and also
wasted the work done in the fast path. Adding this fast path makes sure
we never use the regular CSSParser making the style.tranform call much
faster.
This highlights that the fast path is actually a performance regression
whenever you fall out of it, and also that the CSSParser itself has room
for improvement since invoking it is 3x slower than using the fast path.
Patch Set 1 #
Messages
Total messages: 8 (4 generated)
|
|||||||||||||||||||