aboutsummaryrefslogtreecommitdiff
path: root/contrib/elftoolchain
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2018-11-29 19:28:01 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2018-11-29 19:28:01 +0000
commitdead7b5e47d14f6560c5be40e673664ba20c670f (patch)
treed35261be8adc5986baf73412030722df77b9435a /contrib/elftoolchain
parent7d2b0bd7d78a05f57adb96cc73a605d05938a037 (diff)
downloadsrc-dead7b5e47d14f6560c5be40e673664ba20c670f.tar.gz
src-dead7b5e47d14f6560c5be40e673664ba20c670f.zip
Replace hand-crafted naive byte-by-byte zero block detection routine
with macro based around memcmp(). The latter is expected to be some 8 times faster on a modern 64-bit architectures. In practice, throughput of doing conv=sparse from /dev/zero to /dev/null went up some 5-fold here from 1.9GB/sec to 9.7GB/sec with this change (bs=128k). MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=341257
Diffstat (limited to 'contrib/elftoolchain')
0 files changed, 0 insertions, 0 deletions