Make ExampleGenerator faster by clearing cache only when needed

Description

Instead of clearing the internal cache of ExampleGenerator whenever a user votes on any path in the locale, we should only clear those items in the cache that might actually depend on the particular changed path.

The dependencies are complex since some examples are formed from values in multiple paths.

Some work on making dependency maps was already started as part of https://unicode-org.atlassian.net/browse/CLDR-12020; see TestExampleGeneratorDependencies in TestExampleGenerator.java, added in https://github.com/unicode-org/cldr/pull/189.

xpath

None

locale

None

Status

Assignee

Thomas Bishop

Reporter

Thomas Bishop

Labels

tracReporter

None

tracOwner

None

tracResolution

None

tracStatus

None

Reviewer

None

phase

None

tracCc

None

tracCreated

None

Components

Fix versions

Priority

major
Configure