DescriptionReplace std::map with base::SmallMap in ui::LatencyInfo
The typical number of components per LatencyInfo instance is quite small. Avoid
unnecessary heap allocation by using a SmallMap to store component entries.
This reduces the average browser send time cost per touch or scroll event by
~15us on a Nexus 4, and ~22us on a Galaxy Nexus.
BUG=341613
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257740
Patch Set 1 #Patch Set 2 : Rebase #
Total comments: 1
Patch Set 3 : Move ParamTraits<SmallMap> to base/ #
Total comments: 5
Patch Set 4 : Rebase #Patch Set 5 : Fix compile #
Total comments: 1
Patch Set 6 : Updates #Patch Set 7 : Fix pass by value #Patch Set 8 : Rebase #
Total comments: 1
Patch Set 9 : Fix RenderWidget #
Total comments: 2
Patch Set 10 : Fix test #Patch Set 11 : Rebase #
Messages
Total messages: 35 (0 generated)
|