Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@joeldierkes
Copy link
Contributor

@joeldierkes joeldierkes commented Dec 16, 2025

Let's use xxhash, it's way more performant.


Note

Replace SHA-256 with async xxhash64 for file/buffer hashing, add backward-compatible hash matching, update upload/sync logic, and add xxhash-wasm dependency.

  • Utils / Hashing:
    • Replace SHA-256 with async xxh64 hashing (computeBufferHash) using xxhash-wasm and prefix xxh64:.
    • Add hashesMatch to support old SHA-256 hashes (no prefix) and new xxh64 hashes.
    • Make computeFileHash async and switch to xxh64.
    • Update uploadFile to store xxh64 hash in file metadata.
    • Update initialSync to compare hashes via hashesMatch instead of direct equality.
  • Dependencies:
    • Add xxhash-wasm.

Written by Cursor Bugbot for commit a27db45. This will update automatically on new commits. Configure here.

Let's use xxhash, it's way more performant.
@joeldierkes joeldierkes merged commit a268d76 into main Dec 20, 2025
2 checks passed
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.

3 participants