This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Optimize strstr, strcasestr and memmem
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Maxim Kuvyrkov <maxim at codesourcery dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Sun, 27 May 2012 18:53:34 +0000 (UTC)
- Subject: Re: [PATCH] Optimize strstr, strcasestr and memmem
- References: <2C516CF2-D083-4C1D-AD27-6A31D381D548@codesourcery.com>
There is an open bug (bug 11607) specifically about strstr slowing down
(in particular cases) when the worst-case-linear implementation was
introduced. So the test in that bug may be useful for benchmarking the
patch (and if it appears to fix the regression then it will be appropriate
to list [BZ #11607] in the ChangeLog entry, etc.).
--
Joseph S. Myers
joseph@codesourcery.com