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:51:12 UTC

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

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

Chris A. Mattmann resolved TIKA-1549.
-------------------------------------
    Resolution: Fixed

Patch applied to close #29 on Github in r1659759. Thanks [~eto] appreciate it!

> 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)