mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
add TODO optimizations comments
This commit is contained in:
parent
9c606c7b1d
commit
90b88fe4b7
@ -51,6 +51,9 @@ public class UidFilter extends Filter {
|
||||
Arrays.sort(uids);
|
||||
}
|
||||
|
||||
// TODO Optimizations
|
||||
// - If we have a single id, we can create a SingleIdDocIdSet to save on mem
|
||||
// - We can use sorted int array DocIdSet to reserve memory compared to OpenBitSet in some cases
|
||||
@Override public DocIdSet getDocIdSet(IndexReader reader) throws IOException {
|
||||
BloomFilter filter = bloomCache.filter(reader, UidFieldMapper.NAME, true);
|
||||
OpenBitSet set = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user