You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Simon Willnauer (JIRA)" <ji...@apache.org> on 2013/03/20 15:11:14 UTC

[jira] [Created] (LUCENE-4857) StemmerOverrideFilter should not copy the stem override dictionary in it's ctor.

Simon Willnauer created LUCENE-4857:
---------------------------------------

             Summary: StemmerOverrideFilter should not copy the stem override dictionary in it's ctor.
                 Key: LUCENE-4857
                 URL: https://issues.apache.org/jira/browse/LUCENE-4857
             Project: Lucene - Core
          Issue Type: Bug
          Components: modules/analysis
    Affects Versions: 4.2, 4.1, 4.0
            Reporter: Simon Willnauer
            Priority: Minor
             Fix For: 5.0, 4.2.1


Currently the dictionary is cloned each time the token filter is created which is a serious bottleneck if you use this filter with large dictionaries and can also lead to OOMs if lots of those filters sit in ThreadLocals and new threads are added etc. I think cloning the map should be done in the analyzer (which all of our analyzers do btw. but this is the only TF that does that) no need to really copy that map.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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