[PATCH] Improve performance of strncpy

Florian Weimer fweimer@redhat.com
Wed Sep 10 17:34:00 GMT 2014


On 09/10/2014 05:21 PM, Wilco Dijkstra wrote:
> Yes, you're right, I timed it and there is actually little difference, while
> the code is now even simpler. New version below (not attaching results in bad
> characters due to various mail servers changing line endings).
>
> OK for commit?

I think you could simplify it down to strnlen, memcpy, and memset.

-- 
Florian Weimer / Red Hat Product Security



More information about the Libc-alpha mailing list