You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Jukka Zitting (Commented) (JIRA)" <ji...@apache.org> on 2012/03/19 23:41:38 UTC
[jira] [Commented] (TIKA-878) Reuse computed Map
inside CompositeParser
[ https://issues.apache.org/jira/browse/TIKA-878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13232975#comment-13232975 ]
Jukka Zitting commented on TIKA-878:
------------------------------------
Do you have a benchmark that shows this to be a notable performance bottleneck (compared to the time it takes to parse a typical document)? If not, I suggest we keep the functionality as is to allow dynamic loading and unloading of parser plugins.
> Reuse computed Map<MediaType, Parser> inside CompositeParser
> ------------------------------------------------------------
>
> Key: TIKA-878
> URL: https://issues.apache.org/jira/browse/TIKA-878
> Project: Tika
> Issue Type: Improvement
> Components: parser
> Affects Versions: 1.0
> Reporter: Luis Filipe Nassif
> Priority: Minor
>
> CompositeParser.parse() method calls getParser(metadata), that in turn calls getParsers(context) for each file to construct a Map<MediaType, Parser> from the parsers List. It would be faster to compute the Map<MediaType, Parser> only once and store the result for latter use.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira