[PATCH] Improve performance of strncat

Wilco Dijkstra wdijkstr@arm.com
Wed Aug 20 12:44:00 GMT 2014


Hi,

This patch improves strncat performance by using strlen. Strlen has a fast C implementation, so this
will improve performance even on targets which don't have an optimized strlen. It is about twice as
fast as the original strncat in bench-strncat.

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

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


More information about the Libc-alpha mailing list