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 (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/20 13:17:39 UTC

[jira] [Resolved] (TIKA-878) Reuse computed Map inside CompositeParser

     [ https://issues.apache.org/jira/browse/TIKA-878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved TIKA-878.
--------------------------------

    Resolution: Won't Fix

OK, no problem. And thanks for benchmarking this! Resolving as Won't Fix for now based on the result.
                
> 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