From cbc0f97e7e2b9bda4a62f5ee1881c95de425253a Mon Sep 17 00:00:00 2001 From: Yurii Zubrytskyi Date: Tue, 2 Jul 2024 14:33:25 +0000 Subject: [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 --- libs/androidfw/LocaleDataTables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/androidfw/LocaleDataTables.cpp') 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* 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}, }; -- cgit v1.2.3-59-g8ed1b