commit | 596fa1789c222ab224076b60de470d96865a5d6a | [log] [tgz] |
---|---|---|
author | Yurii Zubrytskyi <zyy@google.com> | Fri Nov 10 16:05:38 2023 -0800 |
committer | Yurii Zubrytskyi <zyy@google.com> | Wed Jan 17 23:52:44 2024 -0800 |
tree | a32706e444c19dd962dfa854bb940766a2ac0926 | |
parent | 4f48ffd43b182f31a199e54a39406cbd3d84abb0 [diff] |
[res] Optimize name lookups in idmap service The most common operation when build idmaps is to find the resource ID by name. This is the least optimized operation in the current resources data structures, as they only expect ID -> value lookups This change adds an optional flag that creates a name->ID hash map inside ResStringPool, and use it when loading APKs in idmap2d Bug: 282215580 Test: build + boot + perf record Change-Id: I82f4d684cb48e2dcddcd677b882b11497c1c13b1