Jukka Zitting created JCR-3775:
----------------------------------
Summary: Avoid lock contention in ISO8601.parse()
Key: JCR-3775
URL: https://issues.apache.org/jira/browse/JCR-3775
Project: Jackrabbit Content Repository
Issue Type: Improvement
Components: jackrabbit-jcr-commons
Reporter: Jukka Zitting
Assignee: Jukka Zitting
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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)