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 d013561..5f40e4e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 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): Optimize to avoid an unnecessary FPCR read. -- cgit v1.1