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]

RE: [PATCH] Improve performance of strcat


Ping

> -----Original Message-----
> From: Wilco Dijkstra [mailto:wdijkstr@arm.com]
> Sent: 07 August 2014 14:28
> To: 'libc-alpha@sourceware.org'
> Subject: [PATCH] Improve performance of strcat
> 
> 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.



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