Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2645

Reuse SAXParsers where possible

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.19, 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Sebastian Nagel pointed out on the user list that there can be thread contention when creating SAXParsers. Jukka Zitting recommended pooling SAXParsers.

      I noticed a modest improvement in speed when parsing docx files with our SAX based parser, and I suspect that Sebastian Nagel will find an even greater improvement during detection because we're currently creating a new SAXParser on every call to detect an XML root.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tallison@apache.org Tim Allison
                Reporter:
                tallison@apache.org Tim Allison
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: