NightOwl888 / ICU4N

International Components for Unicode for .NET
Apache License 2.0
27 stars 7 forks source link

PERFORMANCE: ICU4N.Impl.LocaleIDParser: Converted to ref struct using ValueStringBuilder internally to reduce allocations #51

Closed NightOwl888 closed 1 year ago

NightOwl888 commented 1 year ago

The LocaleIDParser is used by UCultureInfo and in UResourceBundle as one of the primary ways of determining which resources to load, so optimizing this parser is very impactful in reducing heap allocations and GC.