diff options
author | Igor Murashkin <iam@google.com> | 2016-09-01 18:01:07 -0700 |
---|---|---|
committer | Igor Murashkin <iam@google.com> | 2016-09-08 10:07:40 -0700 |
commit | 23f33cd98dcc2217a42322da1139b5a207e7e040 (patch) | |
tree | ca1a9dbecdbe83c6c9fb5adf05bc80bceb8a332f /annotations/generate_annotated_java_files.py | |
parent | 77f9daf71029ad085fc4ac49d6ded0cc5b986dd4 (diff) |
dalvik: Add new optimization annotation for art (@CriticalNative)
Native methods annotated with @CriticalNative will execute significantly
faster than any other form of JNI due to not needing to call back into
the runtime or execute a state transition.
Microbenchmark measurements on angler-userdebug:
* Regular JNI cost in nanoseconds: 115
* Fast JNI cost in nanoseconds: 60
* @FastNative cost in nanoseconds: 35
* @CriticalNative cost in nanoseconds: 25
(Up to 4.6x faster than using regular JNI)
Change-Id: Ifa71cd88e48f9ba73e72d9e7898c1bab319c30bf
Test: make -j32 test-art-host
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions