From f6482cf29d3094ca9688be59802353014c528959 Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Wed, 5 Aug 2015 15:15:28 +0100 Subject: 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 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index d0135619cf..5f40e4e015 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-08-05 Wilco Dijkstra + + * string/strncpy.c (strncpy): + Improve performance by using __strnlen/memcpy. + 2015-08-05 Wilco Dijkstra * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): -- cgit 1.4.1