1. 6
  1.  

  2. 3

    If you’re interested in multiple pattern searching, check out Teddy: https://github.com/rust-lang/regex/blob/master/src/simd_accel/teddy128.rs /plug

    N.B. I did not invent the algorithm. I learned about it from the Hyperscan project and wrote up the description. The writeup has more details.