You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Nick Burch (JIRA)" <ji...@apache.org> on 2017/12/11 18:57:00 UTC

[jira] [Commented] (TIKA-2515) Sending a 3 character text file to tika server takes 1-2 seconds to process

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

Nick Burch commented on TIKA-2515:
----------------------------------

Does this happen for all short files, or only some? If only some, would you be able to upload/share a sample file that triggers the issue?

> Sending a 3 character text file to tika server takes 1-2 seconds to process
> ---------------------------------------------------------------------------
>
>                 Key: TIKA-2515
>                 URL: https://issues.apache.org/jira/browse/TIKA-2515
>             Project: Tika
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 1.16
>            Reporter: Tibor Erdélyi
>
> If a text file is sent to Tika server on localhost containing 3 character only (http://localhost:9998/rmeta/text) it takes about 1-2 seconds, while real processing takes only about 30 msec.
> Processing time difference is caused by constructor of LanguageHandler class called in RecursiveMetadataResource.parseMetadata method. Is it needed to create a new instance of this class for each request?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)