diff options
| author | 2023-11-10 16:05:38 -0800 | |
|---|---|---|
| committer | 2024-01-17 23:52:44 -0800 | |
| commit | 596fa1789c222ab224076b60de470d96865a5d6a (patch) | |
| tree | a32706e444c19dd962dfa854bb940766a2ac0926 /libs/input/PointerController.cpp | |
| 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
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions