This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
java.util.Date.toString() very slow -- why?
- From: Adam Megacz <gcj at lists dot megacz dot com>
- To: java at gcc dot gnu dot org
- Date: 02 Jun 2002 12:50:56 -0700
- Subject: java.util.Date.toString() very slow -- why?
- Organization: Myself
The following code takes 1:35 using 3.1-branch and 0:02 with
HotSpot. Any ideas why?
- a
import java.util.*;
public class test {
public static void main(String[] s) throws Exception {
for(int i=0; i<200; i++) System.out.println(new Date());
}
}
--
Sick of HTML user interfaces?
www.xwt.org