CLDR Ticket #10184(accepted tools)
Cache logical groups
|Reported by:||mark||Owned by:||emmons|
Description (last modified by mark) (diff)
We recompute all the elements of a logical group all the time. We can instead cache the sets.
The simplest is to have a pathMap, which takes path => set of paths
For paths with count=, if we want exactly the ones for the current locale, then the key has to be the set of plural categories used by the locale. So those we'd have some extra maps.
locale => set-of-counts
set-of-counts => pathMap
We could even precompute the cache, since we know beforehand what they all are.