Calling new GregorianCalendar takes too long. Creating 30 Gregorian Calendar: with sun jdk 1.4 : ~ 40 milliseconds compiled gcj: ~ 2800 milliseconds Release: 3.1 Environment: Linux RedHat 7.3, gcc 3.1 (redhat distribution) How-To-Repeat: Simply execute my Attachment
It is fixed in the mainline (20030525) and since this is not a regression I am closing this bug. tin:~/src/gnu/gcctest>javac TestDate.java atin:~/src/gnu/gcctest>java TestDate Begin Timer Calendars: 20 Timer Total: 21 tin:~/src/gnu/gcctest>gcj --main=TestDate TestDate.java tin:~/src/gnu/gcctest>./a.out Begin Timer Calendars: 64 Timer Total: 64 tin:~/src/gnu/gcctest>gij TestDate Begin Timer Calendars: 17 Timer Total: 17 tin:~/src/gnu/gcctest>./a.out Begin Timer Calendars: 15 Timer Total: 15 tin:~/src/gnu/gcctest>gcj -O3 --main=TestDate TestDate.java tin:~/src/gnu/gcctest>./a.out Begin Timer Calendars: 39 Timer Total: 40 tin:~/src/gnu/gcctest>gcj -C TestDate.java tin:~/src/gnu/gcctest>java TestDate Begin Timer Calendars: 21 Timer Total: 22