commit | 1fc520ed286f815cae1da1e9f8014cb18a256744 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Tue Jan 04 00:50:32 2022 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Tue Jan 04 00:51:04 2022 +0100 |
tree | 285e2474f85c03b7d93a4e905276569589cee156 | |
parent | 7abb2bb96e0cd584f44dd8b219ad16d0232a6485 [diff] |
md5/shaXsum: use FEATURE_COPYBUF_KB to size the buffer instead of fixed 4k function old new delta md5_sha1_sum_main 536 565 +29 hash_file 419 401 -18 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 29/-18) Total: 11 bytes In my test, for unrolled sha1, COPYBUF_KB=64 increases throughput from 367 MB/s to 457 MB/s. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>