3 ms·
https://github.com/rust-lang/rust/pull/46735 https://github.com/rust-lang/rust/pull/46735 TL;DR, it's not a naive straight `memchr`. `memchr` will generate fal
by stouset 9y ago
https://github.com/rust-lang/rust/pull/46735 https://github.com/rust-lang/rust/pull/46735
TL;DR, it's not a naive straight `memchr`. `memchr` will generate false positives, then they use knowledge of UTF-8 to weed out the false positives.
The pathological case is worse, but the overwhelming majority of cases are better.