commit | 9aafe13a29254ebec693c9b807d520fe5c2d9678 | [log] [tgz] |
---|---|---|
author | Victor Chang <vichang@google.com> | Thu Oct 05 16:00:09 2023 +0100 |
committer | Victor Chang <vichang@google.com> | Fri Oct 06 16:47:24 2023 +0100 |
tree | ff07de73b5d51bc3dc27f2e1f6ed70b789390a9d | |
parent | 42c915dbdf1fcb713d6ec20b63a07d8f294591ba [diff] |
Speed-up Class.getSimpleName() Consolidate multple JNI calls into single JNI call and eliminate duplicated checks. Before: EMULATOR_time_nanos_median: 215.38060753060753 After: EMULATOR_time_nanos_median: 63.828965 Bug: 303631821 Test: atest CtsLibcoreTestCases:libcore.java.lang.ClassTest Test: atest LibcoreBenchmarkTests:libcore.benchmark.ClassTest Change-Id: I3b897f738dd9d62e3b05910fb4fc729439bb5fb6