the fast_contains used in escape_literal in the cuicui_chirp::interpret module demonstrates how we could design a take_till that takes advantage of SIMD.
Specifically, I think a take_till that takes a static size array of u8 (characters to match) and uses it similarly to the body of any could be extremely well optimized by the compiler. Something like a x8 speedup.
the
fast_contains
used inescape_literal
in thecuicui_chirp::interpret
module demonstrates how we could design atake_till
that takes advantage of SIMD.Specifically, I think a
take_till
that takes a static size array ofu8
(characters to match) and uses it similarly to the body ofany
could be extremely well optimized by the compiler. Something like a x8 speedup.