diff options
| author | Riddle Hsu <riddlehsu@google.com> | 2021-02-23 21:29:18 +0800 |
|---|---|---|
| committer | Riddle Hsu <riddlehsu@google.com> | 2021-02-24 23:33:16 +0800 |
| commit | b293d933e0297dc9a5b8b0c7f8ca939bd8f53267 (patch) | |
| tree | df98b4543ba84198c28213bbf0e6348c52321a2c /docs/html/sdk/api_diff/13/changes | |
| parent | 1cd9f06f69c17559cbc0f0da70a8f467f24c51e7 (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 'docs/html/sdk/api_diff/13/changes')
0 files changed, 0 insertions, 0 deletions
