diff options
author | Andreas Gampe <agampe@google.com> | 2016-05-18 21:10:42 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2016-05-19 15:39:35 -0700 |
commit | 54315c7e452742c6c57649e61c6370c8c2083d96 (patch) | |
tree | c379d90d4eebb5be1b2abf286d625f8941fede9a /compiler/optimizing/graph_visualizer.cc | |
parent | 0fc5abef6fd98c8f1960195aa43448c16e1f11b7 (diff) |
ART: Check whether an oat file exists before opening
The two-stage process of dlopen and our own loader is expensive.
Considering that the OatFileAssistant needs to check two locations,
one of which is unlikely to have a file for the common case of apps
installed in data, do a file existence check before attempting to
load the file.
Remove an unused variable.
Saves about 0.25ms on a N6P.
Bug: 28801010
(cherry picked from commit d9a720bcb5df2c135f161c7c6da2d25db4400dca)
Change-Id: I0aff9c276c0f539723f8a92663f14ce72160c44d
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions