]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cksum: use more efficient slice by 8 algorithm
authorKristoffer Brånemyr <ztion1@yahoo.se>
Sat, 26 Dec 2020 23:40:10 +0000 (23:40 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 28 Dec 2020 16:21:38 +0000 (16:21 +0000)
commita7533917e031125cfcb3076a0dc6b9ad7275f9d2
tree0d0bc50002e17283fd45dc32d70ffd933a1f7150
parentfb64712c4d79a542bae533034c6c4802eae555fd
cksum: use more efficient slice by 8 algorithm

A 100MB file improves from 2.50s to 1.80s on a Sparc T5220
A 100MB file improves from 0.54s to 0.13s on an i3-2310M

* bootstrap.conf: Explicitly depend on byteswap,
since now used directly by coreutils.
* src/cksum.c (cksum): Process in multiples of 8 bytes.
(main): Adjust for generation of expanded crctab.
* src/cksum.h: Split now larger crctab to separate header.
* src/local.mk: Reference the new header.
* NEWS: Mention the improvement.
NEWS
bootstrap.conf
src/cksum.c
src/cksum.h [new file with mode: 0644]
src/local.mk