mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-09-23 02:35:04 -04:00
Improve performance of file_checksum()
Previously files were hashed in blocks of CSUM_CHUNK (64) bytes. This causes significant overhead. The CSUM_CHUNK define cannot be changed as md5.c depends on it, but there is no obvious reason to use it in file_checksum(). By using CHUNK_SIZE (32 kB) instead, in some test cases throughput more than doubles.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f