|
From: | gnu_andrew at member dot fsf.org |
Subject: | [Bug classpath/44052] Performance problems with date formatting |
Date: | Mon, 02 Jul 2012 16:27:45 +0000 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44052 Andrew John Hughes <gnu_andrew at member dot fsf.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED --- Comment #3 from Andrew John Hughes <gnu_andrew at member dot fsf.org> 2012-07-02 16:27:45 UTC --- http://git.savannah.gnu.org/cgit/classpath.git/commit/?id=fafe5baa380e6e792ebb973e5a87199373409eb3 should fix it. This simple test: import java.util.Locale; import java.text.DateFormatSymbols; public class TestDFSPerf { public static void main(String[] args) { for (int a = 0; a < 255; ++a) { new DateFormatSymbols(Locale.UK); } } } shows a notable increase. With the new class: $ time /home/andrew/build/cacao-jdk/bin/java TestDFSPerf real 0m0.161s user 0m0.148s sys 0m0.012s Using the old version taken from gcj 4.7: $ time /home/andrew/build/cacao-jdk/bin/java -Xbootclasspath/p:tmp TestDFSPerf real 0m4.005s user 0m3.936s sys 0m0.040s
[Prev in Thread] | Current Thread | [Next in Thread] |