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

CLDR Ticket #7127(accepted)

Opened 5 years ago

Last modified 4 years ago

CoverageCache improvements?

Reported by: mark Owned by: anybody
Component: perf Data Locale:
Phase: dsub Review:
Weeks: Data Xpath:


It looks to me like the performance of the Coverage cache could be improved if it were structured a bit differently.

Right now it looks up two keys, the path and the locale.

I think it'd be faster to look up a LocaleCoverage object from the locale, which can then be kept around by the caller. That would itself cache <path,level>s.

Also, certain paths have levels that are completely independent of locale. We can have a tool to run whenever we change the data file that generates those paths, and caches them all in a file. At runtime we'd build a static LocaleIndependentCoverage. (The LocaleIndependentCoverage would want to intern the paths, just like we do elsewhere.)

The LocaleCache can then ask LocaleIndependentCoverage first, saving space and time.


Change History

comment:1 Changed 5 years ago by emmons

  • Owner changed from anybody to ribnitz
  • Priority changed from assess to medium
  • type changed from unknown to enhancement
  • Status changed from new to assigned
  • Milestone changed from UNSCH to 26rc

comment:2 Changed 4 years ago by mark

  • Owner changed from ribnitz to googler

comment:3 Changed 4 years ago by mark

  • Owner changed from googler to anybody
  • Milestone changed from 26rc to 27dsub

comment:4 Changed 4 years ago by markus

  • Phase set to dsub
  • Milestone changed from 27dsub to 27

comment:5 Changed 4 years ago by emmons

  • Milestone changed from 27 to UNSCH

Moving all 27+anybody tickets to UNSCH.

comment:6 Changed 4 years ago by srl

  • Status changed from assigned to accepted

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.