Expand description
SIMD-accelerated Hamming distance between two strings. Complexity: O(n / w), for SIMD vectors of length w (usually w = 16 or w = 32).
Example
use bio::alignment::distance::simd::*;
let x = b"GTCTGCATGCG";
let y = b"TTTAGCTAGCG";
// GTCTGCATGCG
// | || |||
// TTTAGCTAGCG
assert_eq!(hamming(x, y), 5);