diff options
| author | 2025-02-18 19:48:58 +0800 | |
|---|---|---|
| committer | 2025-02-18 19:48:58 +0800 | |
| commit | 4f0c6a5d69dcf165c170de3bdafe5ce078cbb2db (patch) | |
| tree | 1aba91f47721d77abb74a39a2bab653442e4806e /tools/aapt2/ResourceTable.cpp | |
| parent | 9c3c7c14e78609ee5b895084ed6dad5e12df6371 (diff) | |
Optimize string interning in ParsedComponentImpl serialization
Changed writeToParcel() to use sForInternedString.parcel() for "name" field serialization
and updated the constructor to use sForInternedString.unparcel() during deserialization.
This improves memory efficiency by leveraging string interning for the component name,
reducing redundant string allocations when parceling/undarceling component data.
Bug:395218509
Change-Id: I01a6b500dc57ea5481a1b94271dc81daa2a031ff
Signed-off-by: huangdezhi@hihonor.com
Diffstat (limited to 'tools/aapt2/ResourceTable.cpp')
0 files changed, 0 insertions, 0 deletions