vqsort-rs
Rust bindings for Google's Highway vectorized quicksort.
The vectorized quicksort sorting algorithm is very fast, as demonstrated in a
writeup,
and outperforms the standard Rust sort_unstable
. However, it only supports
primitive integer and floating-point types, as well as key-value tuples.
Supported types:
i16
,u16
i32
,u32
i64
,u64
isize
,usize
u128
f32
,f64
Key64Value64
,Key32Value32
Examples
let mut data = ;
sort;
assert_eq!;
sort_descending;
assert_eq!;
use Key32Value32; // or Key64Value64
let mut data = ;
sort;
assert_eq!;
sort_descending;
assert_eq!;
Miri
When testing under Miri, this crate falls back to sort_unstable
because Miri
does not support FFI.