You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2014/03/16 05:47:34 UTC
[jira] [Updated] (LUCENE-4688) Reuse TermsEnum in
BlockTreeTermsReader
[ https://issues.apache.org/jira/browse/LUCENE-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Smiley updated LUCENE-4688:
---------------------------------
Fix Version/s: (was: 4.7)
4.8
> Reuse TermsEnum in BlockTreeTermsReader
> ---------------------------------------
>
> Key: LUCENE-4688
> URL: https://issues.apache.org/jira/browse/LUCENE-4688
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/codecs
> Affects Versions: 4.0, 4.1
> Reporter: Simon Willnauer
> Fix For: 4.8
>
> Attachments: LUCENE-4688.patch
>
>
> Opening a TermsEnum comes with a significant cost at this point if done frequently like primary key lookups or if many segments are present. Currently we don't reuse it at all and create a lot of objects even if the enum is just used for a single seekExact (ie. TermQuery). Stressing the Terms#iterator(reuse) call shows significant gains with reuse...
--
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