Bug 9392 - Creating GregorianCalendar is too slow
Summary: Creating GregorianCalendar is too slow
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libgcj (show other bugs)
Version: 3.1
: P3 enhancement
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-21 19:26 UTC by tonioc
Modified: 2006-01-31 18:20 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
TestDate.java (465 bytes, text/plain)
2003-05-21 15:17 UTC, tonioc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tonioc 2003-01-21 19:26:00 UTC
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
Comment 1 Andrew Pinski 2003-05-26 00:01:17 UTC
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