[Bug libstdc++/66414] string::find ten times slower than strstr

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 5 13:01:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66414

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Although we can only do that for the overload that assumes null-terminated
input, not all cases that basic_string::find supports.

We can use the GNU memmem extension for the general case, but that's not
standard.


More information about the Gcc-bugs mailing list