3 ms·
> It has a few thousand lines of C++ templates with SIMD intrinsics... Yes, that's what the memchr crate is, but the Rust version. > and it's definitely more
by burntsushi 3y ago
> It has a few thousand lines of C++ templates with SIMD intrinsics...
Yes, that's what the memchr crate is, but the Rust version.
> and it's definitely more efficient, but the margins aren't always high
IME it can get pretty bad.
> For me the State of the Art is Intel HyperScan.
Yes. See https://github.com/BurntSushi/rebar https://github.com/BurntSushi/rebar and https://github.com/BurntSushi/aho-corasick/tree/feda22857e1d0dd069b9c8941f0caf47a19ad078/src/packed/teddy https://github.com/BurntSushi/aho-corasick/tree/feda22857e1d...