diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2020-04-01 18:29:28 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2020-04-30 12:59:06 -0700 |
commit | d95058f1cd4e55d4a956e7ecdf5243ee300d44bf (patch) | |
tree | 3fbf6a7527030179a0f0904d07bc00f3d1208369 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | b24071b704dbf4fb2241fb3b551f7fba9cec9e6a (diff) |
Camera: Improve metadata access JNI performance
- Don't use reverse-JNI to access metadata ptr, pass it as an arg instead
- Use @FastNative since the calls are short and bounded in time
Performance improvement:
- On a 10-second trace of camera app running on sargo, percentage of
time used in CameraMetadataNative.get went from 4.36% to 3.77%, a 15%
reduction in time.
Test: atest CtsCameraTestCases
Bug: 150214459
Change-Id: I28d9428beaa7eada6292e24fe6ca1dbd9c2ff153
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions