[PATCH] Improve performance of strcat

Wilco Dijkstra wdijkstr@arm.com
Thu Aug 7 13:28:00 GMT 2014


Hi,

This patch improves strcat performance by using strlen and strcpy. Strlen has a fast C
implementation, so this improves performance even on targets which don't have an optimized strlen
and strcpy - it is 25% faster in bench-strcat. On targets which don't provide an optimized strcat
but which do have an optimized strlen and strcpy, performance gain is > 2x.

OK for commit?

ChangeLog:
2014-08-07  Wilco Dijkstra <wdijkstr@arm.com>

	* string/strcat.c (strcat): Improve performance by using strlen/strcpy.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Improve-strcat-performance.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140807/a768dd25/attachment.txt>


More information about the Libc-alpha mailing list