On 12/1/2016 8:16 AM, Dorian Hoxha wrote:
> Any idea why the cache doesn't use roaring bitsets ?
I had to look that up to even know what it was. Apparently Lucene does
have an implementation of that, a class called RoaringDocIdSet. It was
incorporated into the source code in October 2014 with this issue:
As for the reason that it wasn't used for the filterCache, I think
that's because the filterCache existed LONG before that bitset
implementation was available, and when things work well (which describes
the filterCache), devs try not to mess with them too much.
I have mentioned the idea on a recently-filed issue regarding bitset