summaryrefslogtreecommitdiff
path: root/bootstrap.conf
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-08-22 15:45:56 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2013-08-22 15:46:27 -0700
commit59f4ef95f8a9c0583d1560ef447eab9d44e32cd1 (patch)
tree72b3e6d5a7e41b86ea28731c558a5ad506277ec9 /bootstrap.conf
parent9350980d5dd0d922845bcbb225207a775cf40697 (diff)
downloaddiffutils-59f4ef95f8a9c0583d1560ef447eab9d44e32cd1.tar.gz
cmp, diff, sdiff: tune by using rawmemchr
On my platform (AMD Phenom II X4 910e, Fedora 17 x86-64), this sped up 'cmp -n 8GiB /dev/full /dev/zero' by a factor of 3.8, and 'cmp -sn 8GiB /dev/full /dev/zero' by a factor of 1.8. * bootstrap.conf (gnulib_modules): Add rawmemchr. * src/cmp.c (cmp): Optimize the common case where buffers are the same, by using count_newlines rather than block_compare_and_count. (block_compare_and_count): Remove. (count_newlines): New function. * src/cmp.c (count_newlines): * src/io.c (prepare_text): * src/sdiff.c (lf_copy, lf_skip, lf_snarf): Use rawmemchr instead of memchr, for speed.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r--bootstrap.conf1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap.conf b/bootstrap.conf
index 240754b..ac85adf 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -56,6 +56,7 @@ mkstemp
mktime
progname
propername
+rawmemchr
readme-release
regex
sh-quote