diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2015-08-05 15:15:28 +0100 |
---|---|---|
committer | Wilco Dijkstra <wdijkstr@arm.com> | 2015-08-05 16:24:02 +0100 |
commit | f6482cf29d3094ca9688be59802353014c528959 (patch) | |
tree | 11e8c2855b92cb90ce2a16ad55151c60e8d6962f /elf/restest1.c | |
parent | 7b1c56e4834aa3b139fea39ded64a7e901be89a2 (diff) | |
download | glibc-f6482cf29d3094ca9688be59802353014c528959.tar.gz glibc-f6482cf29d3094ca9688be59802353014c528959.tar.xz glibc-f6482cf29d3094ca9688be59802353014c528959.zip |
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.
Diffstat (limited to 'elf/restest1.c')
0 files changed, 0 insertions, 0 deletions