diff options
author | 2024-07-02 14:33:25 +0000 | |
---|---|---|
committer | 2024-07-02 14:33:25 +0000 | |
commit | cbc0f97e7e2b9bda4a62f5ee1881c95de425253a (patch) | |
tree | 576ee208c6b18b5d0e0aab1d0fdb026b6e500bb0 /libs/androidfw/LocaleDataTables.cpp | |
parent | 8cdf261e1752e331e746858dd80a602bc1cda698 (diff) |
[res] Move the latin parents map to be first
The most accessed parent lookup table is the one for Latin
scripts, move it to the first position to save a few CPU cycles
Bug: 345562237
Test: unit tests + boot
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8fb681e6c4874d08cc4053fc8749e4586441f4fe)
Merged-In: I8aae2a3ced662aceb2965c110168c861dcabb2f0
Change-Id: I8aae2a3ced662aceb2965c110168c861dcabb2f0
Diffstat (limited to 'libs/androidfw/LocaleDataTables.cpp')
-rw-r--r-- | libs/androidfw/LocaleDataTables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/androidfw/LocaleDataTables.cpp b/libs/androidfw/LocaleDataTables.cpp index b68143d82090..94351182871a 100644 --- a/libs/androidfw/LocaleDataTables.cpp +++ b/libs/androidfw/LocaleDataTables.cpp @@ -2451,10 +2451,10 @@ const struct { const char script[4]; const std::unordered_map<uint32_t, uint32_t>* map; } SCRIPT_PARENTS[] = { + {{'L', 'a', 't', 'n'}, &LATN_PARENTS}, {{'A', 'r', 'a', 'b'}, &ARAB_PARENTS}, {{'D', 'e', 'v', 'a'}, &DEVA_PARENTS}, {{'H', 'a', 'n', 't'}, &HANT_PARENTS}, - {{'L', 'a', 't', 'n'}, &LATN_PARENTS}, {{'~', '~', '~', 'B'}, &___B_PARENTS}, }; |