Ravi Pokala wrote in <b1dce6f5-7b6e-45a1-8a43-11e04a371...@panasas.com>: |-----Original Message----- |From: <owner-src-committ...@freebsd.org> on behalf of Mateusz Guzik \ |<m...@freebsd.org> |Date: 2020-08-10, Monday at 03:40 |To: <src-committ...@freebsd.org>, <svn-src-all@freebsd.org>, <svn-src-he\ |a...@freebsd.org> |Subject: svn commit: r364071 - head/sys/kern | | Author: mjg | Date: Mon Aug 10 10:40:14 2020 | New Revision: 364071 | URL: https://svnweb.freebsd.org/changeset/base/364071 | | Log: | cache: strlcpy -> memcpy | |But why?
Ach, i like it! I, coming from (basic ->) perl -> java -> C++ -> C always hated that C string functions which iterate stuff over and over again, but especially so if working on buffers of which the length is known. I mean, you know, if i know i have a NUL terminated buffer and its length, why in the world should i use one of those mysterious C string functions? I know there is one NUL, it is at LENGTH, dammit! I like it, several such commits flew by over the last at least weeks, and i could imagine that in a cache it also matters. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"