diff options
author | Vladimir Marko <vmarko@google.com> | 2021-03-10 15:36:40 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2021-03-11 09:48:35 +0000 |
commit | a718d6450feae9ee6b5de96407c8e44afbf173e7 (patch) | |
tree | 133f55536e360b999021fbba9332f85709fc7fae /compiler/optimizing/graph_visualizer.cc | |
parent | 5e435b2c209d87030f607c4cdfba913dec3eb3e0 (diff) |
Preallocate a HashMap buffer in LSE.
Add more HashSet<> constuctors with the allocator argument.
Inherit HashSet<> constructors in HashMap<>.
Use a pre-allocated buffer with size 16 to avoid allocating
a large one (kMinBuckets = 1000) on first use. With the
default max load factor 0.7, this pre-allocated buffer is
sufficient for all methods with up to 11 stores.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 181943478
Change-Id: I7862b98ec9ec3ddb34693fd956fea75138d35e02
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions