ChrisHegarty commented on code in PR #13545: URL: https://github.com/apache/lucene/pull/13545#discussion_r1670333682
########## lucene/core/src/java/org/apache/lucene/util/VectorUtil.java: ########## @@ -212,6 +212,14 @@ public static int int4DotProductPacked(byte[] unpacked, byte[] packed) { return IMPL.int4DotProduct(unpacked, false, packed, true); } + /** + * For xorBitCount we stride over the values as either 64-bits (long) or 32-bits (int) at a time. + * On ARM Long::bitCount is not vectorized, and therefore produces less than optimal code, when + * compared to Integer::bitCount. While Long::bitCount is optimal on x64. TODO: include the + * OpenJDK JIRA url Review Comment: Oops. I just added it in https://github.com/apache/lucene/commit/4baaedaa67046adeed19cdc28a346c1ebc9e8b5d https://bugs.openjdk.org/browse/JDK-8336000 -- 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