[PATCH 1/4] LoongArch: Add ifunc support for strcpy{aligned, unaligned, lsx, lasx}
Xi Ruoyao
xry111@xry111.site
Fri Sep 8 14:22:23 GMT 2023
On Fri, 2023-09-08 at 17:33 +0800, dengjianbo wrote:
> According to glibc strcpy microbenchmark test results(changed to use
> generic_strcpy instead of strlen + memcpy), comparing with generic_strcpy,
> this implementation could reduce the runtime as following:
>
> Name Percent of rutime reduced
> strcpy-aligned 10%-45%
> strcpy-unaligned 10%-49%, comparing with the aligned version,unaligned
> version experience better performance in case src and dest
> cannot be both aligned with 8bytes
> strcpy-lsx 20%-80%
> strcpy-lasx 15%-86%
Generic strcpy calls stpcpy, so if we've optimized stpcpy maybe it's not
necessary to duplicate everything in strcpy. Is there a benchmark
result comparing the timing with and without this patch, but both with
the second patch (optimized stpcpy)?
--
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University
More information about the Libc-alpha
mailing list