Desugar switch in Locale::createLocale

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 23
    • Affects Version/s: None
    • Component/s: 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).

            Assignee:
            Claes Redestad
            Reporter:
            Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: