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).
- relates to
-
JDK-8309622 Re-examine the cache mechanism in BaseLocale
-
- Resolved
-