lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eks dev <eks...@yahoo.co.uk>
Subject Re: [jira] Updated: (LUCENE-584) Decouple Filter from BitSet
Date Wed, 06 Sep 2006 10:33:33 GMT

"Keep in mind that BitSetIterator is fast for iteration over all it's bits.
If it's used as a filter (with skipping), I would expect it to be slower."

still, DenseBitsMatcher (BitSetIterator warpped in Matcher) works faster than anything else
for this case:

 int skip(Matcher m) throws IOException{
     int doc=-1, ret = 0; 
     while(m.skipTo(doc+1)){
        doc = m.doc(); 
        ret+=doc;
      }
     return ret;
  }


for sparse bit sets, VInt thingy works the best 




Mime
View raw message