Replace 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
Review URL: https://codereview.chromium.org/157003005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257740 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 205294bddfb47d6581a9dd961e95cd01ead71cac
1 file changed