[PATCH] powerpc: strcasestr optimization
Ondřej Bílka
neleai@seznam.cz
Mon Jun 1 13:43:00 GMT 2015
On Mon, Jun 01, 2015 at 04:11:28PM +0530, Rajalakshmi Srinivasaraghavan wrote:
>
> This patch optimizes strcasestr function for power >= 7 systems.
> This patch uses optimized strlen and strnlen for calculating
> string length and the average improvement of this optimization is ~40%.
> This patch is tested on powerpc64 and powerpc64le.
> Attached the benchresults with this new patch.
>
Thats not enough. As strcasestr that I submited is around three times
slower your implementation would likely be regression over generic one.
A problem here is that you use moronic algorithm. Fix algorithm first
before trying to optimize it.
More information about the Libc-alpha
mailing list