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

Performance problem in JDK 1.4 getting locales

XMLWordPrintable

    • b52
    • generic
    • generic, solaris_8

      ---------------------------------------
      java -version : 1.2.2
      locale length 144
      time to get locales 1340
      -------------------------------------------
      java -version 1.4.0
      bash-2.03# java Test
      locale length 148
      time to get locales 5699
      ----------------------------------

      import java.util.Locale;

      public class Test {
              public static void main(String args[]) {
                      long start = System.currentTimeMillis();
                      Locale[] mLocale = Locale.getAvailableLocales();
                      System.out.println("locale length " + mLocale.length);
                      long end = System.currentTimeMillis();
                      System.out.println("time to get locales " + (end-start));
              }
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: