Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The ISO8601.parse() method calls the synchronized TimeZone.getTimeZone() method, which causes lock contention in concurrent code that frequently parses ISO8601 strings.
To avoid the synchronization, we could use a static flyweight map of all known time zones, and only fall back to the getTimeZone() method if some unknown time zone is encountered.