possibly improve performance of SIMD candidate check in substring search
Open
@mazam-97 is already working on this.
Since Jun 8, 2026.
C-enhancement
T-libs
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
I noticed that the candidate check for SIMD substring search
is using small_slice_eq
This was pulled from memchr a while back. But memchr got an improvement here a few years ago:
https://github.com/BurntSushi/memchr/commit/e77f0bf07ae3445d77776aabe233a9352dd753c5
std might consider adopting this. Note that memchr's infrastructure uses raw pointers everywhere for $reasons, so I'm unsure if that will matter since compilers are weird.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.