https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66414
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to AK from comment #8) > Should we consider this fixed? I think we can still do better, by using GNU memmem when it's available: https://gcc.gnu.org/pipermail/gcc-patches/2017-January/466460.html https://gcc.gnu.org/pipermail/gcc-patches/2017-January/466469.html https://gcc.gnu.org/pipermail/gcc-patches/2017-January/466471.html For now we should also use the new code in basic_string_view::find which is currently much slower.