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

CLDR Ticket #10184(accepted)

Opened 2 years ago

Last modified 6 months ago

Cache logical groups

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

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.


Change History

comment:1 Changed 2 years ago by mark

  • Description modified (diff)

comment:2 Changed 2 years 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

comment:3 Changed 12 months ago by emmons

  • Milestone changed from upcoming to UNSCH

comment:4 Changed 6 months ago by mark

  • Component changed from util to perf

comment:5 Changed 6 months ago by mark

  • Component changed from perf to infrastructure

Add a comment

Modify Ticket

as accepted

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

Note: See TracTickets for help on using tickets.