1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-11-06 08:49:29 +02:00

Use xxHash instead of SHA-1 for block incremental checksums.

xxHash is significantly faster than SHA-1 so this helps reduce the overhead of the feature.

A variable number of bytes are used from the xxHash depending on the block size with a minimum of six bytes for the smallest block size. This keeps the maps smaller while still providing enough bits to detect block changes.
This commit is contained in:
David Steele
2023-03-09 10:02:04 +07:00
parent 8b5153ad21
commit 210bed4511
36 changed files with 6218 additions and 129 deletions

View File

@@ -2020,6 +2020,8 @@ sub restoreCompare
delete($oExpectedManifestRef->{&MANIFEST_SECTION_TARGET_FILE}{$strName}{"bno"});
$oActualManifest->remove(MANIFEST_SECTION_TARGET_FILE, $strName, "bi");
delete($oExpectedManifestRef->{&MANIFEST_SECTION_TARGET_FILE}{$strName}{"bi"});
$oActualManifest->remove(MANIFEST_SECTION_TARGET_FILE, $strName, "bic");
delete($oExpectedManifestRef->{&MANIFEST_SECTION_TARGET_FILE}{$strName}{"bic"});
$oActualManifest->remove(MANIFEST_SECTION_TARGET_FILE, $strName, "bim");
delete($oExpectedManifestRef->{&MANIFEST_SECTION_TARGET_FILE}{$strName}{"bim"});