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

Performance: Using ResourceBundle.Control API to speed up the resource bundle search

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-libs
    • None
    • b43
    • generic
    • generic

      Due to the current ResourceBundle seach mechanism, after the base bundle found, a list of locale specific resource bundle has to be located, e.g. resourceX_en.class (if not found, resource_X.property will be searched).

      Most of time, these locale specific resource bundle do not exists and the side effect of doing the search of non-existent resources will result into the opening of every jar file on bootclasspath and extention classpath.

      We could speed up the above process by using the ResourceBundle.Control API available in 1.6 to provide a list of locales we known for sure exists and we ONLY search these locale specific resource bundle. Some experiments show doing this will give us a great improvement on cold startup, at least on Windows platform.

      ###@###.### 2005-06-03 23:40:43 GMT

            xlu Xiaobin Lu (Inactive)
            xlu Xiaobin Lu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: