XXHash.js
- 3 Devlogs
- 2 Total hours
Trying to implement xxhash in JavaScript for learning purposes.
Trying to implement xxhash in JavaScript for learning purposes.
I optimized both by properly using the DataView API and reducing unnecessary variables!!
It’s slightly slower due to BigInt implementation, but I’ve managed to get something working.
Still, it’s faster than the reference implementation!!
Well, maybe returning BigInt instead of converting to number or string might be problematic though…
Implementing the hash algorithm was challenging for the first time.
I think I could implement it much faster for 64-bit systems.