commit | 0f8e0723d67bd75125705b2707c36927beabd886 | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Mon Oct 26 14:52:42 2015 -0700 |
committer | Mathieu Chartier <mathieuc@google.com> | Mon Oct 26 15:47:47 2015 -0700 |
tree | 09c5364e2bf2b09e4ac8c70470d15607c8a324e0 | |
parent | 525b665cef9d85a6cfe56994561a24e10dac7f0f [diff] |
Use HashMap for DexFileVerifier Before: 2.51% std::map<unsigned int, unsigned short>::insert(... 0.72% malloc After: 0.73% art::HashSet<std::__1::pair<unsigned int, unsigned short>::Insert(... 0.57% malloc The allocation from HashSet is only 0.71% of the remaining 0.57% malloc time. 0.71% art::DexFileVerifier::CheckIntraSectionIterate(unsigned long, unsigned int, unsigned short) Bug: 10921004 Change-Id: I85c60bf27fb2d9976b944fc15d8401904432dc22