-
Bug
-
Resolution: Fixed
-
P3
-
1.1.4, 6
-
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));
}
}
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));
}
}
- duplicates
-
JDK-6293206 sun.util.resources.LocaleData.getAvailableLocales() too expensive
- Closed
- relates to
-
JDK-6259669 RFE: java.util.jar.ZipFile should provide "Enumeration<? extends ZipEntry> getEntries(Pattern p)"
- Closed
-
JDK-6307385 Locale performance and correctness fixes
- Closed