You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "rmuir (via GitHub)" <gi...@apache.org> on 2023/02/04 23:16:29 UTC

[GitHub] [lucene] rmuir opened a new pull request, #12128: Speed up docvalues set query by making use of sortedness

rmuir opened a new pull request, #12128:
URL: https://github.com/apache/lucene/pull/12128

   LongHashSet is used for the set of numbers, but it has some issues:
   * tries too hard to extend AbstractSet, mostly for testing
   * causes traps with boxing if you aren't careful
   * complex hashcode/equals
   
   Practically we should take advantage of the fact numbers come in sorted order for multivalued fields: just like range queries do. So we use min/max to our advantage, including termination of docvalues iteration.
   
   Actually it is generally a win to just check min/max even in the single-valued case: these constant time comparisons are cheap and can avoid hashing, etc.
   
   In the worst-case, if all of your query Sets contain both the minimum and maximum possible values, then it won't help, but it doesn't hurt either.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] rmuir merged pull request #12128: Speed up docvalues set query by making use of sortedness

Posted by "rmuir (via GitHub)" <gi...@apache.org>.
rmuir merged PR #12128:
URL: https://github.com/apache/lucene/pull/12128


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org