Migrate Variants to ShortVec and improve macro #1800
Labels
C-locale
Component: Locale identifiers, BCP47
good first issue
Good for newcomers
help wanted
Issue needs an assignee
S-medium
Size: Less than a week (larger bug fix or enhancement)
T-enhancement
Type: Nice-to-have but not required
Milestone
In #1767 I introduced the concept of
ShortVec
inLocale
, but only forKeywords
andFields
.If we extend the use of
ShortVec
to other places inLocale
that currently useVec
, then we will be able to enable code such as:and basically any other situation where there is exactly 0 or 1 of everything. It also helps to reduce heap allocations.
The text was updated successfully, but these errors were encountered: