summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2017-05-22 16:08:52 -0700
committerAndreas Gampe <agampe@google.com>2018-06-28 14:33:23 -0700
commit8ad7a3b4f7875546f471f8955967da17c9728a00 (patch)
tree2a5dbaf6752357b537fe956ec18f09ab3d8ee79f /compiler/optimizing/graph_visualizer.cc
parentd20a4d76c33cd6e609ad6b1b3cde09fdcbdde05c (diff)
ART: Improve Constructor.newInstance
Special-case InvokeMethod to be constructor-specific so as to avoid unnecessary and duplicate checks. Refactor for some code sharing. Reduces Constructor.newInstance for Integer by approximately 15% (ten runs of 10000000 invocations, reporting mean per invocation, host x86-64 optimizing, perf stat numbers are for complete run and do not exclude, for example, setup and prologue GC): Before After (perf stat) Instructions 2503.4 2149.8 Branches 450.8 384.4 Branch-misses 1.83 0.85 (time) Time (ns) 335.17 278.58 Bug: 20269715 Test: mmma art Test: m test-art-host Change-Id: Id105e542a19d72efaace60ad39fcef5e42dde006
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions