diff options
| author | 2017-05-22 16:08:52 -0700 | |
|---|---|---|
| committer | 2018-06-28 14:33:23 -0700 | |
| commit | 8ad7a3b4f7875546f471f8955967da17c9728a00 (patch) | |
| tree | 2a5dbaf6752357b537fe956ec18f09ab3d8ee79f /compiler/optimizing/optimizing_unit_test.h | |
| parent | d20a4d76c33cd6e609ad6b1b3cde09fdcbdde05c (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/optimizing_unit_test.h')
0 files changed, 0 insertions, 0 deletions