pub fn hamming_distance_fast(a: &[u8], b: &[u8]) -> u32Expand description
Hamming distance operating on u64 chunks for better throughput.
Processes 8 bytes at a time using u64 POPCNT. Falls back to byte-level for the remainder. ~4x faster than byte-level for vectors ≥64 dims.