summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2017-11-12 12:58:40 -0800
committerMathieu Chartier <mathieuc@google.com>2017-11-20 13:34:53 -0800
commit3e0c5170c87b39c88c7f3b5fbd7b07e60547bfd7 (patch)
treecbb52ff88b9a643d0a08a2c890a15f3442db13d5 /compiler/optimizing/graph_visualizer.cc
parentcb90e3a29041ea55c4b5eb3d1477aa360381a1f1 (diff)
Add logic for calculating offsets during writing
Delete all the offset related layout logic, move the logic to writing. Layout is now controlled by changing the order of the data vectors. Calculate all offsets during writing instead of reading. This allows more flexible layout optimizations without needing to be as careful about offsets in other sections changing. Maintained logic for using existing offsets in the case where changing the layout is not required. Areas to improve: How to size the memmap, do we want 2 passes? Currently the algorithm reserves 10% extra space in case required. This is sufficient for top 1000 apps in the play store. Will consider a two pass approach later. Bug: 63756964 Bug: 68948395 Bug: 68867570 Bug: 68864106 Bug: 68864168 Test: test/testrunner/testrunner.py --host -j40 Test: test-art-host-gtest Test: Dexlayout speed profile top 1000 apps Change-Id: I7dee869da3a010559547f8cfdf93e9aa4c3f47ff
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions