Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8330802

Desugar switch in Locale::createLocale

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • None
    • core-libs
    • None
    • b20

      On systems with locales that need to be looked up, such as sv_SE, the switch expression in Locale::createLocale is cause for quite a bit of work. While I've taken step to reduce the overhead of SwitchBootstraps via a few other enchancements, the point fix of desugaring this simple switch into ifs still means an improvement of ~10ms on Hello World on my M1 (-87M instructions).

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: