commit | a9bb3ba81fba1750139654360cb716ab093103b0 | [log] [tgz] |
---|---|---|
author | Mike Marshall <hubcap@omnibond.com> | Wed Apr 06 11:19:37 2016 -0400 |
committer | Mike Marshall <hubcap@omnibond.com> | Fri Apr 08 14:08:27 2016 -0400 |
tree | 98483c708424a6aa36a66a823d6e90fc9102840f | |
parent | 2d09a2ca6a6c66d765458df2653f888c4a481c81 [diff] |
Orangefs: optimize boilerplate code. 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>