-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resumable hashing #94
Comments
It's an interesting feature request. It can be implemented by serializing internal librhash state into a "partly hashed" file. But for now it's a low priority FR, so not sure when I get my hands to it. |
You have knowledge of the library. Can you put 15 min and give a rundown of where that code is and what essentially should happen? I might look into implementing it, would rather know where to look without learning the entire code base Its very useful for download automation where you need hashing, can be split into a piped stream into rhash. Partial hashing is necessary for crashes(long downloads tend to have issues) I.e. a way to send in the "partially hashed" file or load it after a crash. When you hash a 50g file and it breaks in the middle that's a little nightmare scenario |
see also https://stackoverflow.com/questions/2130892/persisting-hashlib-state you really just have to save and load
|
Since bbbe1be librhash supports add rhash_import() and rhash_export() functions to save and load its internal state. Now it's not hard to support resumable hashing of single file. Some things are not clear:
|
Have any of you considered resumable hashing for rhash?
When hashing extremely large files, 20GB and up, being able to resume hashing from a previous position would help a ton.
Is this something you've considered?
The text was updated successfully, but these errors were encountered: