[PATCH v2] x86-64: AVX2 Optimize strcat/strcpy/stpcpy routines
Florian Weimer
fweimer@redhat.com
Thu Dec 6 09:05:00 GMT 2018
* leonardo sandoval gonzalez:
> Optimize strcat/strcpy/stpcpy routines and its max-offset versions with
> AVX2. It uses vector comparison as much as possible. Observed speedups
> compared to sse2_unaligned:
Shouldn't we keep the stpcpy specialization from the original patch? Or
at least call the new strcpy from a wrapper function? The generic
function uses strlen plus memcpy, which I believe is slower than calling
strcpy and recomputing the return value.
How does this new strcpy compare against the old one for short strings?
Thanks,
Florian
More information about the Libc-alpha
mailing list