Skip to content

Add opt-in for full file hash verification - #310

Open
mnightingale wants to merge 3 commits into
Parchive:masterfrom
mnightingale:feature/full-file-hash
Open

Add opt-in for full file hash verification#310
mnightingale wants to merge 3 commits into
Parchive:masterfrom
mnightingale:feature/full-file-hash

Conversation

@mnightingale

Copy link
Copy Markdown
Contributor

The default verification behaviour makes better use of multithreading by processing blocks independently, because if every block matches and the file is the right length then the hash of the whole file cannot differ.

For those that prefer as close to absolute certainty as is possible this adds an opt-in flag to also check the full file hash.

The obvious way to implement this would be to turn off the aligned block scan, but that gives up the block threading and is much slower.

The style of this flag is different to the others, but it was as suggested and frankly the single character flags are rather confusing.

@mnightingale
mnightingale force-pushed the feature/full-file-hash branch from 8bc21ab to 7260347 Compare September 5, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant