https://github.com/torvalds/linux
Revision a9bb3ba81fba1750139654360cb716ab093103b0 authored by Mike Marshall on 06 April 2016, 15:19:37 UTC, committed by Mike Marshall on 08 April 2016, 18:08:27 UTC
Suggested by David Binderman <dcb314@hotmail.com>
The former can potentially be a performance win over the latter.

memcpy(d, s, len);
memset(d+len, c, size-len);

memset(d, c, size);
memcpy(d, s, len);

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
1 parent 2d09a2c
History
Tip revision: a9bb3ba81fba1750139654360cb716ab093103b0 authored by Mike Marshall on 06 April 2016, 15:19:37 UTC
Orangefs: optimize boilerplate code.
Tip revision: a9bb3ba
File Mode Size
1.Intro -rw-r--r-- 14.6 KB
2.Process -rw-r--r-- 23.1 KB
3.Early-stage -rw-r--r-- 10.6 KB
4.Coding -rw-r--r-- 20.6 KB
5.Posting -rw-r--r-- 15.1 KB
6.Followthrough -rw-r--r-- 11.7 KB
7.AdvancedTopics -rw-r--r-- 9.4 KB
8.Conclusion -rw-r--r-- 3.0 KB

back to top