gf2121 commented on code in PR #12610:
URL: https://github.com/apache/lucene/pull/12610#discussion_r1346210779


##########
lucene/core/src/java/org/apache/lucene/util/bkd/MutablePointTreeReaderUtils.java:
##########
@@ -81,6 +86,40 @@ protected int byteAt(int i, int k) {
           return (reader.getDocID(i) >>> Math.max(0, shift)) & 0xff;
         }
       }
+
+      @Override
+      protected Sorter getFallbackSorter(int k) {

Review Comment:
   Thanks for the review and the great advice! As `Arrays#compareUnsigned` need 
to compare bytes one by one when length < 8, This way should speed things up.
   However, the newest patch (as well as origin patch that using 
`Arrays#compareUnsigned`) shows a slower speed than `main` in my benchmark. I'm 
still digging to understand what happened. I'll change this PR to draft until 
figuring it out.



-- 
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-unsubscr...@lucene.apache.org

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


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

Reply via email to