summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceTable.cpp
diff options
context:
space:
mode:
author h00013079 <huangdezhi@hihonor.com> 2025-02-18 19:48:58 +0800
committer h00013079 <huangdezhi@hihonor.com> 2025-02-18 19:48:58 +0800
commit4f0c6a5d69dcf165c170de3bdafe5ce078cbb2db (patch)
tree1aba91f47721d77abb74a39a2bab653442e4806e /tools/aapt2/ResourceTable.cpp
parent9c3c7c14e78609ee5b895084ed6dad5e12df6371 (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