You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2011/01/25 20:37:44 UTC

[jira] Closed: (LUCENE-1437) Faster skipTo on SegmentTermEnum

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

Uwe Schindler closed LUCENE-1437.
---------------------------------

    Resolution: Won't Fix

skipTo() was never implemented effective. It was always recommended to get a new TermEnum when seeking was needed. In 2.9, skipTo() was deprecated and removed in Lucene 3.0.

In Lucene trunk (4.0), the new class TermsEnum supports seeking.

> Faster skipTo on SegmentTermEnum
> --------------------------------
>
>                 Key: LUCENE-1437
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1437
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 2.4
>            Reporter: Mark Harwood
>            Priority: Minor
>         Attachments: fasterSkip.patch
>
>
> I've been trying to speed up function I have that involves calling TermEnum.skipTo a lot on a very large index with many terms.
> This patch avoids excessive object creation of Term objects as part of the default implementation in the TermEnum base class.
> My tests output with this patch was as follows:
>     Took 1894 ms for 42304 calls to skipTo on index with 182693176 docs 
> and unmodified Lucene 2.4 results were:
>     Took 2438 ms for 42304 calls to skipTo on index with 182693176 docs 
> The logic is based on the existing code in SegmentTermEnum. scanTo(Term term) and avoids the object construction code found in the TermEnum.skipTo code which repeatedly calls next() and term() to create Term objects.
> Anyone see any negative side effects in changing this?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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