summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.h
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2020-12-22 14:36:47 +0000
committerVladimir Marko <vmarko@google.com>2020-12-23 15:46:20 +0000
commit26de89604fdb6f7db3effcf775860f9f0dcd00f0 (patch)
tree2830f9340b2af2c7d5f3919a46a014f20ad04368 /compiler/optimizing/graph_visualizer.h
parentcea158fa671917938562c69c143ac5a8b2a29fc7 (diff)
Use HashMap<> and HashSet<> in dex2oat.
Use HashMap<> instead of std::unordered_map<> in ImageWriter as it is much faster thanks to avoiding individual nodes that need malloc/free. However, for larger value types, such as `NativeObjectRelocation`, this can increase memory usage. Avoid storing individual ArtField relocations to reduce the memory usage and re-hashing time. Rename `pointer_arrays_` to `method_pointer_arrays_` and change it to HashSet<>, removing the unnecessary storage for `Bin`, as it has not been used for fields since https://android-review.googlesource.com/162796 . Avoid double-lookups for insertion CHECK()s by using the result of HashSet<>::insert(). Remove obsolete comments from the HashSet<>::insert() API that have been wrong since https://android-review.googlesource.com/1169846 . Similary, use HashSet<> instead of std::unordered_set<> in CompilerDriver. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Test: boots. Bug: 175869411 Change-Id: I538c3ac2ce8d7cad69bb14709702ac7ee0af810d
Diffstat (limited to 'compiler/optimizing/graph_visualizer.h')
0 files changed, 0 insertions, 0 deletions