dweiss commented on code in PR #13751: URL: https://github.com/apache/lucene/pull/13751#discussion_r1751723180
########## lucene/core/src/java/org/apache/lucene/util/hnsw/HnswLock.java: ########## @@ -67,4 +66,10 @@ public void close() { lock.unlock(); } } + + static int hash(int v1, int v2) { + int result = 31 + v1; + result = 31 * result + v2; Review Comment: (or just drop the constant shifting part and leave v1 * 31 + v2...). -- 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