[Bug libc/12100] QoI regression: strstr() slowed from O(n) to O(n^2) on SSE4 machines
liubov.dmitrieva at gmail dot com
sourceware-bugzilla@sourceware.org
Fri Jun 29 12:58:00 GMT 2012
http://sourceware.org/bugzilla/show_bug.cgi?id=12100
--- Comment #9 from Liubov Dmitrieva <liubov.dmitrieva at gmail dot com> 2012-06-29 12:57:25 UTC ---
SSE42 strstr is quadratic at worst but still better in general cases than
current 2way algo.
If new Ondrej's SSE algorithm or current 2way version with applied path [1]
will be better for real life cases then SSE42 strstr should be eliminated.
But I agree with Ulrich that for strstr long needles is not important in real
life. People use memmem instead.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list