diff options
| author | 2021-11-02 16:47:54 -0700 | |
|---|---|---|
| committer | 2021-11-04 07:39:11 +0000 | |
| commit | 968c813361ce84e19db3a3765efb253bbeeb7783 (patch) | |
| tree | 29d31f4ffcd6777c3c1ba2df11eb421d95dc2c49 /compiler/optimizing/instruction_builder.cc | |
| parent | 91c795f68ed86ff6067adc691100ddc812d4a004 (diff) | |
Avoid redundant strlen for shorty names
As the shorty names are ASCII, we can safely use the UTF16 length as
the byte length. Update several ART files to use the shorty getters
that return the length to avoid redundant strlen calls.
This strlen usage was showing up as a minor part of a recent Play Store
app startup profile.
Bug: 204230974
Test: Manual
Change-Id: I4f5fb100303f465ed50b524ee5e349c8341a05e9
Diffstat (limited to 'compiler/optimizing/instruction_builder.cc')
0 files changed, 0 insertions, 0 deletions