[ https://issues.apache.org/jira/browse/TIKA-878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233364#comment-13233364 ]
Luis Filipe Nassif commented on TIKA-878: ----------------------------------------- You are right, it has a minimal impact (1 to 2%). Sorry for reporting prior to the benchmark. > 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