Chromium Code Reviews
DescriptionUse template parameter to reduce branching in style resolve apply passes
The optimisation in https://crrev.com/890e3f57caf40adab7ea377cb50ef6591b6b882e
regressed performance on the waterfall perf bots. This patch attempts to
reduce the performance regression by moving one of the branches to
be compile time evaluated as a template parameter.
This optimisation is not being reverted as it is still necessary to
prevent a regression when adding an additional CSS property priority
that increases the number of apply passes we have to perform.
The perf try bots show this change making an improvement of
1-5% on Android, 6-11% on Linux, 0-13% on Windows and 2-7% on Mac.
BUG=450466, 644148
Committed: https://crrev.com/851bdd47fcb66176959020a63bbdb3b4b090d845
Cr-Commit-Position: refs/heads/master@{#431122}
Patch Set 1 #Patch Set 2 : Enum #
Messages
Total messages: 13 (8 generated)
|
||||||||||||||||||||||||||||