DescriptionA host of micro-optimizations and a refactor of TimeForBoundsToIntersect
I used perf to profile the compositor thread and addressed performance problems
with the top fuctions. The result is about a 2.5x performance boost.
(~1.3ms -> ~.5ms) on List of Pokemon for UpdateTilePriorities.
Most of the optimizations are inlining small functions. The refactor of
TimeForBoundsToIntersect also eliminates many unnecessary float-double
conversions.
BUG=172406
NOTRY=true
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179770
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180229
Patch Set 1 #
Total comments: 1
Patch Set 2 : merged to tip of tree and refactored TilePriority::TimeForBoundsToIntersect #
Total comments: 6
Patch Set 3 : removing unnecessary include #Patch Set 4 : rebasing to tip of tree again #Patch Set 5 : moved kMaxTimeToVisibleInSeconds to avoid static initialization #Patch Set 6 : rebasing to tip of tree #
Messages
Total messages: 22 (0 generated)
|