Repository navigation
[1.4.3] — October 27th, 2026
Changed
-
Localize.Number.to_string/2resolves a locale's number system, symbols, standard patterns and minimum grouping digits once per locale and number system and keeps them in the format cache, so a default format costs about half the reductions and time it did (786 to 363 reductions);Localize.Locale.get/3reads with no options go straight to the provider andLocalize.Number.Format.formats_for/2reads the number systems once, which the compact and currency formats and dates share. Thanks to @etareduction for the report, closes #67. -
A compact format (
:short,:longand:currency_short) costs about 40 percent of what it did (1,908 to 721 reductions for 1234): aDecimal's plural operands are integer arithmetic on its coefficient and exponent inLocalize.Number.PluralRule.CardinalandOrdinal, which every plural selection on aDecimalshares, the plural form is chosen once after the rounding carry, and the formats are read once.