• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

Deprecate MD5 file checksum in favor of XXH64

Rodolfo

👑 Chevereto Godlike
Chevereto Staff
Administrator
Describe your feature request
The MD5 file checksum hashing is O(n) and when we started to support big files you can notice a very abysmal performance. A 5GB file can easy take up to 20s to compute the hash. This RFC is for updating the file hashing function, which is used only to detect duplicates.

The xxh64 algo is way faster and collision resistant, it is natively supported by PHP and we can also easily add it to JavaScript (wasm) which is really fast in the browser.

1745846012182.png

^ The XXH64 algo is 16X faster than MD5.

Where did you see this?
I was lurking at the source code and I noticed this performance bootle neck.

Community interest
Anyone having long waits after the media has been uploaded is likely due to this. File md5 hashing is slow as the bigger the file it gets and we should update in this.
 
Last edited:
Seems that it will be xxh64, I only found a wasm module capable of deliver fast for big files.
 
Back
Top