Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8fb681e6 authored by Yurii Zubrytskyi's avatar Yurii Zubrytskyi
Browse files

[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
Change-Id: I8aae2a3ced662aceb2965c110168c861dcabb2f0
parent 9687d080
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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},
};