diff options
author | 2021-06-07 11:07:05 +0100 | |
---|---|---|
committer | 2021-06-08 14:34:40 +0000 | |
commit | 4573be38b0fb938c1177b8aa474e980c64ab5587 (patch) | |
tree | ac2a02e6e40c60c7b6bede1c863f376882deb594 /libnativeloader/native_loader_test.h | |
parent | b89e731029b61d66aa8c44f188bce48ec59a733e (diff) |
Faster Class::FindClassMethod().
Avoid using `strlen()` on ASCII strings from DexFile.
This was a missed opportunity in
https://android-review.googlesource.com/963405 .
Also optimize iteration over declared methods of a class.
Load the dex file before the loop and avoid the runtime
method check in `ArtMethod::GetMethodNameView()` by using
the `DexFile` interface directly.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 181943478
Change-Id: I1ce3659b7f1fbcfc11d52626f9feb9be666d1161
Diffstat (limited to 'libnativeloader/native_loader_test.h')
0 files changed, 0 insertions, 0 deletions