summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibUnicode/Forward.h
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-08-26 06:56:17 -0400
committerLinus Groh <mail@linusgroh.de>2021-08-27 12:32:24 +0100
commit6719e5cb179a1fa0358ea1c9871d555d65da215a (patch)
tree1fdfb884b590511e363da483995dc14f21f9da76 /Userland/Libraries/LibUnicode/Forward.h
parentb8ad4d302e3ac46900f819ac22cb1c96552685fb (diff)
downloadserenity-6719e5cb179a1fa0358ea1c9871d555d65da215a.zip
LibUnicode: Generate locale subtag data as multiple smaller tables
This commit is preemptive to upcoming commits which add more subtags to the CLDR generator. Rather than generating a giant HashMap containing all data, generate more (smaller) Array-based tables. This mimics the UCD generator. This also allows simpler lookups at runtime since we can generate index-based lookups into the smaller tables rather easily. Without this change, adding the remaining locale subtags would result in the generation and compilation of UnicodeLocale.cpp taking about 30s on my machine. With this change, it takes about half that. Additionally, the size of the generated file reduces by about 1.5MB.
Diffstat (limited to 'Userland/Libraries/LibUnicode/Forward.h')
-rw-r--r--Userland/Libraries/LibUnicode/Forward.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/Libraries/LibUnicode/Forward.h b/Userland/Libraries/LibUnicode/Forward.h
index a8ef73a70c..2e9e19c43d 100644
--- a/Userland/Libraries/LibUnicode/Forward.h
+++ b/Userland/Libraries/LibUnicode/Forward.h
@@ -19,7 +19,6 @@ enum class Script : u8;
enum class Territory : u8;
enum class WordBreakProperty : u8;
-struct LocaleData;
struct SpecialCasing;
struct UnicodeData;