[
https://issues.apache.org/jira/browse/TIKA-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14321445#comment-14321445
]
Hudson commented on TIKA-1549:
------------------------------
SUCCESS: Integrated in tika-trunk-jdk1.7 #491 (See
[https://builds.apache.org/job/tika-trunk-jdk1.7/491/])
Fix for TIKA-1549 Increased the speed of language identification by a factor of
two. Fix contributed by Toke Eskildsen <[email protected]>. This closes #29.
(mattmann: http://svn.apache.org/viewvc/tika/trunk/?view=rev&rev=1659759)
* /tika/trunk/CHANGES.txt
*
/tika/trunk/tika-core/src/main/java/org/apache/tika/language/LanguageProfile.java
*
/tika/trunk/tika-core/src/test/java/org/apache/tika/language/LanguageIdentifierTest.java
> 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)