lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Elschot (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1296) Allow use of compact DocIdSet in CachingWrapperFilter
Date Wed, 12 Nov 2008 17:11:44 GMT

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

Paul Elschot commented on LUCENE-1296:
--------------------------------------

{quote}Also, why not put your logic to sometimes choose a SortedVIntList impl intoCachingWrapperFilter.docIdSetToCache
by default?{quote}

The main reason is that there are circumstances under which skipTo() is faster on an OpenBitSet
than on a SortedVIntList. OpenBitSet allows random access, so it can start the skip from any
point, but SortedVIntList can only start the skip from its current position.
OTOH SortedVIntList does have the advantage of being smaller when the set is sparse, and this
may bring garbage collection advantages.
In all, not completely convincing either way.



> Allow use of compact DocIdSet in CachingWrapperFilter
> -----------------------------------------------------
>
>                 Key: LUCENE-1296
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1296
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Search
>            Reporter: Paul Elschot
>            Assignee: Michael McCandless
>            Priority: Minor
>             Fix For: 2.9
>
>         Attachments: cachedFilter20080529.patch, cachedFilter20080605.patch
>
>
> Extends CachingWrapperFilter with a protected method to determine the DocIdSet to be
cached.

-- 
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message