Skip to content

Commit

Permalink
add LongHashSet todo
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmiller committed Feb 4, 2023
1 parent 86fdcc2 commit db2de86
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,8 @@ private Scorer docValuesScorer(LeafReader reader) throws IOException {
SortedSetDocValues dv = DocValues.getSortedSet(reader, field);

boolean hasAtLeastOneTerm = false;
// TODO: Consider LongHashSet instead. Benchmarks hinted that this might increase latency
// by as much as 20%, but we should revisit.
LongBitSet ords = new LongBitSet(dv.getValueCount());
PrefixCodedTerms.TermIterator termIterator = termData.iterator();
for (BytesRef term = termIterator.next(); term != null; term = termIterator.next()) {
Expand Down

0 comments on commit db2de86

Please sign in to comment.