Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the default cache filter impl from FixedBitSet to WAH8DocIdSet #7577

Closed

Commits on Sep 3, 2014

  1. Core: Change the default cache filter impl from FixedBitSet to WAH8Do…

    …cIdSet.
    
    A few months ago, Lucene switched from FixedBitSet to WAH8DocIdSet in order
    to cache filters. WAH8DocIdSet is especially better when dealing with sparse
    sets: iteration is faster, memory usage is lower and there is an index that
    helps keep advance fast.
    
    This doesn't break existing code since elastic#6280 already made sure that there was no
    abusive cast from DocIdSet to Bits or FixedBitSet and elastic#7037 moved consumers of
    the filter cache that absolutely need to get fixed bitsets to their own cache.
    
    Since cached filters will be more memory-efficient, the filter cache size has
    been decreased from 10 to 5%. Although smaller, this might still allow to cache
    more filters.
    jpountz committed Sep 3, 2014
    Copy the full SHA
    8d39d48 View commit details
    Browse the repository at this point in the history