| Crates.io | fast-slice-utils |
| lib.rs | fast-slice-utils |
| version | 0.1.1 |
| created_at | 2025-10-09 03:05:27.545532+00 |
| updated_at | 2025-10-11 14:38:43.128471+00 |
| description | Highly optimized slice utilities using SIMD instructions when available |
| homepage | |
| repository | https://github.com/luketpeterson/fast-slice-utils |
| max_upload_size | |
| id | 1874933 |
| size | 49,030 |
Highly optimized slice utilities using SIMD instructions when available
fast-slice-utils provides optimized implementations of a couple of slice operations using platform-specific SIMD instructions (AVX2, NEON, etc.).
The library is no_std compatible.
find_prefix_overlap: Returns the number of matching bytes at the start of two slicesstarts_with: A faster replacement for the standard library's slice::starts_withnightly feature)Currently some of the implementations may over-read the provided slices, causing miri to become upset. The code ensures that it never reads across a page boundary. If a fix can be found (that doesn't hurt performance too badly) we will gladly integrate it.
Any contribution is welcome including bug fixes, optimizations, additional functions, and support for additional platforms.