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