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

Reuse SAXParsers where possible

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.19, 2.0.0
    • None
    • None

    Description

      wastl-nagel pointed out on the user list that there can be thread contention when creating SAXParsers. jukkaz recommended pooling SAXParsers.

      I noticed a modest improvement in speed when parsing docx files with our SAX based parser, and I suspect that wastl-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

              tallison Tim Allison
              tallison Tim Allison
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: