[Unicode]   Common Locale Data Repository : Bug Tracking Home | Site Map | Search
 
Modify

CLDR Ticket #10184(accepted tools)

Opened 3 months ago

Last modified 2 months ago

Cache logical groups

Reported by: mark Owned by: emmons
Component: util Data Locale:
Phase: rc Review:
Weeks: Data Xpath:
Xref:

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.

Attachments

Change History

comment:1 Changed 3 months ago by mark

  • Description modified (diff)

comment:2 Changed 2 months ago by emmons

  • Status changed from new to accepted
  • Component changed from unknown to util
  • Priority changed from assess to minor
  • Phase changed from dsub to rc
  • Milestone changed from UNSCH to upcoming
  • Owner changed from anybody to emmons
  • Type changed from unknown to tools
View

Add a comment

Modify Ticket

Action
as accepted
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.