You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/03/12 14:45:44 UTC

[jira] [Commented] (LUCENE-5518) minor hunspell optimizations

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

ASF subversion and git services commented on LUCENE-5518:
---------------------------------------------------------

Commit 1576738 from [~rcmuir] in branch 'dev/trunk'
[ https://svn.apache.org/r1576738 ]

LUCENE-5518: minor hunspell optimizations

> minor hunspell optimizations
> ----------------------------
>
>                 Key: LUCENE-5518
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5518
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/analysis
>            Reporter: Robert Muir
>         Attachments: LUCENE-5518.patch, LUCENE-5518.patch
>
>
> After benchmarking indexing speed on SOLR-3245, I ran a profiler and a couple things stood out.
> There are other things I want to improve too, but these almost double the speed for many dictionaries.
> * Hunspell supports two-stage affix stripping, but the vast majority of dictionaries don't have any affixes that support it. So we just add a boolean (Dictionary.twoStageAffix) that is false until we see one.
> * We use java.util.regex.Pattern for condition checks. This is slow, I switched to o.a.l.automaton and its much faster, and uses slightly less RAM too.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org