While the `contains` optimization is impressive, I'm curious how favorable the AVX version compares to a fully-optimized search that doesn't use SIMD. For instance [1] discusses the Boyer-Moore technique used by GNU grep, which is somewhat thematically similar to the described approach.<p>[1] <a href="https://lists.freebsd.org/pipermail/freebsd-current/2010-August/019310.html" rel="nofollow">https://lists.freebsd.org/pipermail/freebsd-current/2010-Aug...</a>