Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3775

Avoid lock contention in ISO8601.parse()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.8
    • jackrabbit-jcr-commons
    • 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.

      Attachments

        Activity

          People

            jukkaz Jukka Zitting
            jukkaz Jukka Zitting
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: