[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] cksum: Use pclmul hardware instruction for CRC32 calculation
From: |
Pádraig Brady |
Subject: |
Re: [PATCH] cksum: Use pclmul hardware instruction for CRC32 calculation |
Date: |
Sat, 13 Mar 2021 18:18:40 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Thunderbird/84.0 |
On 13/03/2021 16:13, Pádraig Brady wrote:
FYI testing on an older i3-2310M system
shows the bottleneck is not near I/O (cat is much faster).
A 500MiB file improves from 1.40s to 0.67s on the i3-2310M.
$ time src/cksum file.in
3404199294 524288000 file.in
real 0m0.672s
user 0m0.584s
sys 0m0.084s
I'm also considering applying the attached
to add a --debug option (present on a few other coreutils),
which will diagnose the implementation used
(since it's build time and run time variable).
cheers,
Pádraig
cksum--debug.patch
Description: Text Data