summaryrefslogtreecommitdiff
path: root/core/java/android/inputmethodservice/InputMethodService.java
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-12-16 18:12:34 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-12-16 18:15:41 +0800
commit2ad85f032327c99c38d00bf97631d7af66201058 (patch)
tree3e623f36356bd1f02f02d80a8325a9dd4bffb429 /core/java/android/inputmethodservice/InputMethodService.java
parent9975e2c41290a1c7bfed1c345beed4f925acf5fa (diff)
Use hand written hasCode for ChangeIdStateQuery
Because Objects.hash(Object... values) will always create an array to wrap the "..." arguments, with additional auto-boxing for all primitive type arguments. This can reduce the execution time of ChangeIdStateQuery#hashCode() by 8 times, which is usually the main cost of CompatChanges#isChangeEnabled. Bug: 208449209 Test: atest android.app.compat.CompatChangesTest Change-Id: I863aa1d35e7448b5a965368272198c4529253ae0
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions