Function small_slice_eq
pub(in ::str::pattern) unsafe fn small_slice_eq(x: &[u8], y: &[u8]) -> bool
Compares short slices for equality.
It avoids a call to libc's memcmp which is faster on long slices due to SIMD optimizations but it incurs a function call overhead.
Safety
Both slices must have the same length.