You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "John Wang (JIRA)" <ji...@apache.org> on 2013/01/17 00:48:13 UTC

[jira] [Commented] (LUCENE-3664) Speed up SegementDocsAndPositionsEnum by making it more friendly for JIT optimizations

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

John Wang commented on LUCENE-3664:
-----------------------------------

What do you think about moving the delete check into IndexSearcher? For most cases, the number of deletes are small and furthermore, but moving the delete check to the searcher, we handle this case implicitly while making sure the number of checks into liveDocs is <= the sum of the number of checks needed in each leaf node.
                
> Speed up SegementDocsAndPositionsEnum by making it more friendly for JIT optimizations
> --------------------------------------------------------------------------------------
>
>                 Key: LUCENE-3664
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3664
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>    Affects Versions: 4.0-ALPHA
>            Reporter: Simon Willnauer
>            Priority: Minor
>             Fix For: 4.2, 5.0
>
>         Attachments: LUCENE-3664.patch
>
>
> LUCENE-3648 applied some refactoring to make SegmentDocsEnum reuse some code and divorce the liveDocs and no-liveDocs case into sep classes to make more friendly for jit optimizations. I did the same thing for SegmentDocsAndPositions[AndPayloads]Enum removing a couple of hundred lines of code abstracting it into a base class. patch follows in a sec...

--
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