ICU4J SimpleDateFormat takes too much time for initializing DateFormatSymbols

Description

DateFormatSymbols constructor calls ICUResourceBundle.getFunctionalEquivalent to get the calendar type for the given locale. When you call SimpleDateFormat constructor, a large amount of time is spent by this.

Also, the use of getFunctionalEquivalent for getting the default calendar type for a locale is deprecated.

Activity

Show:
TracBot
June 30, 2018, 11:33 PM
Trac Comment 4 by —2009-09-17T16:46:51.000Z

Moved getCalendarType from Calendar to a new class in com.ibm.icu.impl package and use it from both Calendar and DateFormatSymbols. According to the profiling result per 10000 SimpleDateFormat instantiation, DateFormatSymbols constructor becomes 15+ times faster than before.

TracBot
June 30, 2018, 11:33 PM
Trac Comment 6 by —2016-10-05T23:14:21.544Z

Milestone 4.3.2 deleted

Fixed

Assignee

Yoshito Umaoka

Reporter

Yoshito Umaoka

Components

Labels

None

Reviewer

None

Priority

major

Time Needed

Hours

Fix versions