Descriptionui: Replace std::vector with a simple array in ClipTransformRecorder.
std::vector shows up as hot in profiling as push_back() is presumably
using heap allocation. Since we don't need to support an arbitrary
number of operations on a single ClipTransformRecorder we can do better
with a simple array.
This provides a change for a single tab spinner in the UI compositor
from 0.172935 ms to 0.168272 ms which is a 3% improvement in record time
(time spent in LayerTreeHost::UpdateLayers).
R=sky
BUG=466426
Committed: https://crrev.com/71b6c7df348b822b5ed223cb8374d0cfe67f445c
Cr-Commit-Position: refs/heads/master@{#329185}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 11 (3 generated)
|