]> sourceware.org Git - glibc.git/commit
This patch improves strncpy performance by using strnlen/memcpy rather than a byte...
authorWilco Dijkstra <wdijkstr@arm.com>
Wed, 5 Aug 2015 14:15:28 +0000 (15:15 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Wed, 5 Aug 2015 15:24:02 +0000 (16:24 +0100)
commitf6482cf29d3094ca9688be59802353014c528959
tree11e8c2855b92cb90ce2a16ad55151c60e8d6962f
parent7b1c56e4834aa3b139fea39ded64a7e901be89a2
This patch improves strncpy performance by using strnlen/memcpy rather than a byte loop. Performance
on bench-strncpy is 1.9-2.1x faster on average. I tried several variations, and using a tailcall and
calling memset conditionally gave the best overall results.
ChangeLog
string/strncpy.c
This page took 0.040515 seconds and 5 git commands to generate.