This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Improve performance of strncat


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.

Attachment: Improve-performance-of-strncat.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]