You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[WASM] Load ICU break dictionaries on demand instead of embedding them in every app #26049
On WebAssembly, embed only the ICU data Uno needs at startup, and load the break dictionaries on demand.
Why is this needed? 🤔
uno.icu-wasm embeds a 5.5 MB icudt.dat (2.46 MB brotli) into every app's head assembly. Of that:
2.0 MB brotli are the brkitr/*.dict dictionaries, which ICU only consults for Thai, Lao, Khmer, Myanmar and CJK text.
0.4 MB are top-level locale .res files that break iteration never reads.
The rules and *.icu tables Uno uses are 72 KB brotli. A blank app's assembly drops from 2.53 MB to 134 KB brotli, and startup on 4G (9 Mbps, 85 ms RTT) improves by ~1.8 s.
The minimal data plus the dictionaries give break results identical to the full data on 1,560 samples (15 scripts, 26 locales, word/line/sentence/character). A dictionary package registered later through udata_setCommonData is picked up by new break iterators.
Activity