slow-J commented on code in PR #12947: URL: https://github.com/apache/lucene/pull/12947#discussion_r1639824058
########## lucene/core/src/java/org/apache/lucene/util/LSBRadixSorter.java: ########## @@ -92,7 +92,7 @@ public void sort(int numBits, final int[] array, int len) { return; } - buffer = ArrayUtil.grow(buffer, len); + buffer = ArrayUtil.growNoCopy(buffer, len); Review Comment: Since we are not doing a copy, why do we still need `int[] buf`, can we not use `buffer` throughout instead? -- 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