tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-2645) Reuse SAXParsers where possible
Date Wed, 23 May 2018 00:42:00 GMT

    [ https://issues.apache.org/jira/browse/TIKA-2645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16486525#comment-16486525
] 

Hudson commented on TIKA-2645:
------------------------------

UNSTABLE: Integrated in Jenkins build tika-2.x-windows #256 (See [https://builds.apache.org/job/tika-2.x-windows/256/])
TIKA-2645 - use a pool for SAXParsers and DOMBuilders -- make the static (tallison: rev e24e6afb1c2a37be266839767115ad6adc5f8dcf)
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/epub/EpubContentParser.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml/SXSLFPowerPointExtractorDecorator.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/image/ImageMetadataExtractor.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/iwork/IWorkPackageParser.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml/xwpf/ml2006/Word2006MLParser.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml/xps/XPSExtractorDecorator.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/image/xmp/JempboxExtractor.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/xml/XMLParser.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml/SXWPFWordExtractorDecorator.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/microsoft/xml/AbstractXML2003Parser.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/pdf/PDFParser.java
* (edit) tika-core/src/main/java/org/apache/tika/parser/ParseContext.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml/XSSFExcelExtractorDecorator.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/ocr/TesseractOCRParser.java
* (edit) tika-core/src/main/java/org/apache/tika/mime/MimeTypesReader.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml/xwpf/XWPFStylesShim.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/microsoft/ooxml/AbstractOOXMLExtractor.java
* (edit) CHANGES.txt
* (edit) tika-core/src/main/java/org/apache/tika/utils/XMLReaderUtils.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/odf/OpenDocumentContentParser.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/dif/DIFParser.java
* (edit) tika-core/src/main/java/org/apache/tika/detect/XmlRootExtractor.java
* (edit) tika-parsers/src/main/java/org/apache/tika/parser/journal/TEIDOMParser.java
* (edit) tika-core/src/main/java/org/apache/tika/parser/NetworkParser.java


> Reuse SAXParsers where possible
> -------------------------------
>
>                 Key: TIKA-2645
>                 URL: https://issues.apache.org/jira/browse/TIKA-2645
>             Project: Tika
>          Issue Type: Task
>            Reporter: Tim Allison
>            Assignee: Tim Allison
>            Priority: Major
>             Fix For: 1.19, 2.0.0
>
>
> [~wastl-nagel] pointed out on the [user list|https://lists.apache.org/thread.html/54913f29cd83bba175f77a2d6a4902bb3a5cba2fa495bbfd6012024a@%3Cuser.tika.apache.org%3E]
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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message