summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2021-02-23 21:29:18 +0800
committerRiddle Hsu <riddlehsu@google.com>2021-02-24 23:33:16 +0800
commitb293d933e0297dc9a5b8b0c7f8ca939bd8f53267 (patch)
treedf98b4543ba84198c28213bbf0e6348c52321a2c /tools/aapt2/java/JavaClassGenerator_test.cpp
parent1cd9f06f69c17559cbc0f0da70a8f467f24c51e7 (diff)
Optimize the Parcel read/write of common window data
The Parcel read/write speed of MergedConfiguration/InsetsSource becomes 4x+ faster. Because writeParcelable sends additional type info which is unnecessary if the type is known on the reading side, replace the usages to writeTypedObject and well-written readFromParcel. That saves the time of class lookup and object creation. Bug: 181025587 Test: vogar --mode app_process --benchmark \ frameworks/base/core/tests/benchmarks/src/android/os/ParcelableBenchmark.java Change-Id: I29548ce6c2e5886f0e90a5dc70d8e9ecc0fb25a8
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions