lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan McKinley (JIRA)" <>
Subject [jira] Commented: (LUCENE-2649) FieldCache should include a BitSet for matching docs
Date Sun, 19 Sep 2010 00:22:33 GMT


Ryan McKinley commented on LUCENE-2649:

I thought of  an optimization that could reduce memory usage...  

If all non-deleted documents have a value, we don't need a real BitSet -- just a Bits implementation
that always returns true.

That should save 3% (or 12.5%) here and there.

- - - - - -

On other thing to consider... do we want to remove the getXXXX functions that do not pass
in a Parser?  passing in null, is equivalent?

> FieldCache should include a BitSet for matching docs
> ----------------------------------------------------
>                 Key: LUCENE-2649
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Ryan McKinley
>             Fix For: 4.0
>         Attachments: LUCENE-2649-FieldCacheWithBitSet.patch, LUCENE-2649-FieldCacheWithBitSet.patch,
> The FieldCache returns an array representing the values for each doc.  However there
is no way to know if the doc actually has a value.
> This should be changed to return an object representing the values *and* a BitSet for
all valid docs.

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:
For additional commands, e-mail:

View raw message