commit | 356e28fdb19dcc6ecfa73c4b4f5a182978e7dd20 | [log] [tgz] |
---|---|---|
author | Chris Jenneisch <chrisj@codeaurora.org> | Mon Jan 08 13:34:09 2018 -0800 |
committer | Shuzhen Wang <shuzhenwang@google.com> | Wed Feb 28 23:14:31 2018 +0000 |
tree | a21071a88d28c7306a04704ecc494405f6f28f92 | |
parent | b21613bd38d5341fd5d8738d6ff32bbac2c34360 [diff] |
Use std::unordered_map for mTagToTypeMap In the profile we notice that SortedVectorImpl::_indexOrderOf is almost 1.6% which is quite high considering it is an access to a container. We make mTagToNameMap as a std::unordered_map to store the Tag and the types. The accesses would be in constant time. This change removes this from the profile and give ~10% improvement. Bug: 72526772 Change-Id: Iffd244febd093bdfec9fe4d5e846a0e59c0ecdce