icu4x
icu4x copied to clipboard
Solving i18n for client-side and resource-constrained environments.
CodePointTrie is already highly optimized, but someone should look at it with fresh eyes and determine whether there is any low-hanging fruit that could make it even faster, e.g. for...
All our diplomat types are prefixed with `ICU4X`. This is probably due to C not having namespacing. However, in other languages, this is not idiomatic. Could a prefix be added...
Based on some preliminary testing, it appears that the slowest component of datagen when run in release mode is the interface between Rust and WASM in icu_codepointtrie_builder. The command line...
The following code: https://github.com/unicode-org/icu4x/blob/fcdbad1be0b92752f18ba8c63d36352f2781d5ff/components/calendar/src/calendar_arithmetic.rs#L28-L33 will immediately panic if the month offset is negative and less than the number of current months, since there will be an arithmetic overflow. What this...
Currently, we define `ShortVec` to be ```rust enum ShortVec { Empty, Single(T), Multi(Vec), } ``` This requires 32 bytes on x86_64: `Vec` is 3*usize (24 bytes), and the discriminant requires...
See https://github.com/unicode-org/icu4x/issues/58 I implemented the new option as `BaseLanguageHandling::Retain` or `BaseLanguageHandling::Strip`.
After experimenting with this for some time, it's clear that there is not a single storage solution that works optimally for every use case. I have therefore proceeded to make...
I've come across a number of docs tests that have unused imports, which can be confusing to clients and developers. We should clean up unused imports and then prevent them...
We want to link to these guidelines from https://www.unicode.org/reporting.html
Fixes https://github.com/unicode-org/icu4x/issues/4417