HUSTERGS commented on code in PR #14896: URL: https://github.com/apache/lucene/pull/14896#discussion_r2205153577
########## lucene/core/src/java/org/apache/lucene/util/Constants.java: ########## @@ -152,6 +163,17 @@ private static boolean hasFastScalarFMA() { return false; } + private static boolean hasFastCompress() { + if (OS_ARCH.equals("aarch64") && MAC_OS_X == false && HAS_SVE) { + return true; + } + + if (OS_ARCH.equals("amd64") && HAS_AVX2 && MAX_VECTOR_SIZE >= 32) { + return true; + } Review Comment: Thanks for your reply! I've pushed a new commit according to your suggestion, I'm wondering wheather we should do the refactor (replace vector size check with `HAS_AVX2`) in a separate PR ? -- 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