about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2015-08-05 15:15:28 +0100
committerWilco Dijkstra <wdijkstr@arm.com>2015-08-05 16:24:02 +0100
commitf6482cf29d3094ca9688be59802353014c528959 (patch)
tree11e8c2855b92cb90ce2a16ad55151c60e8d6962f /ChangeLog
parent7b1c56e4834aa3b139fea39ded64a7e901be89a2 (diff)
downloadglibc-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 'ChangeLog')
-rw-r--r--ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d0135619cf..5f40e4e015 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
 
+	* string/strncpy.c (strncpy):
+	Improve performance by using __strnlen/memcpy.
+
+2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
+
 	* sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
 	Optimize to avoid an unnecessary FPCR read.