Improve lazy computation in Locale

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: 25
    • Component/s: core-libs
    • b02
    • generic
    • generic

      Locale has a few use sites that defer initialization. Lazy strategies such as CHM, nested static classes, and local inner classes are employed. These would all be better if replaced by StableValues.

      While Locale and BaseLocale can take advantage of SVs to simplify the caching mechanism, care needs to be taken to not introduce startup degradation. Particularly, with lambda usage.

            Assignee:
            Justin Lu
            Reporter:
            Justin Lu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: