You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Chris A. Mattmann (JIRA)" <ji...@apache.org> on 2015/02/14 08:20:11 UTC

[jira] [Created] (TIKA-1549) Two times speed increase of language profile distance calculation

Chris A. Mattmann created TIKA-1549:
---------------------------------------

             Summary: Two times speed increase of language profile distance calculation
                 Key: TIKA-1549
                 URL: https://issues.apache.org/jira/browse/TIKA-1549
             Project: Tika
          Issue Type: Bug
          Components: languageidentifier
            Reporter: Toke Eskildsen
            Assignee: Chris A. Mattmann
             Fix For: 1.8


The distance calculation for language profiles creates a Set of Strings with each call and performs hashtable lookups for all those Strings. This patch creates and caches compact structures that are iterated sequentially. The result is a factor 2 speed up (see the performance test in LanguageIdentifierTest).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)