commit | 5b92a70d9cc263cef961bc6c81fe159352f0f4cb | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Fri Jul 07 14:09:46 2017 -0700 |
committer | Andreas Gampe <agampe@google.com> | Fri Jul 07 21:14:12 2017 -0700 |
tree | 1428cb2a3071dcd3aeb04a9cb9977a20190ead71 | |
parent | d412d7b98649ce9bd84b4ef733030316c976f5c1 [diff] |
ART: Change StringTable for RecentAllocations Avoid the expensive std::distance call by caching the index inside the set element. This requires a mutable field and a Finish call. Effect on b/37620770 repro case: Dump time = ~ 12s -> 3.7s (cherry picked from commit 2eeb01a9327b091124521a84c76edb2c6dcfa8f0) Bug: 37620770 Test: m test-art-host Merged-In: I6ab89e0e99994466183042bd59358439f98dde42 Change-Id: I6ab89e0e99994466183042bd59358439f98dde42