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

Reuse SAXParsers where possible

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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. 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 [~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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment