Closed miyoosan closed 3 years ago
I don't think it's possible. The MD5 algorithm is not really designed for that. Did you see an implementation which does it?
I don't think it's possible. The MD5 algorithm is not really designed for that. Did you see an implementation which does it?
Thanks for your answer. Yeah, I couldn't find any one. It's a pitty. I found the reason bellow.
The key issue with MD5 is that the algorithm is mostly one long dependency chain. Because of this, MD5 is limited in what parallelism it can exploit on modern superscalar processors (so much so that the more complex SHA1 hash often runs faster on modern processors).
And some possible optimisation:
Above ideas come from animetosho/md5-optimisation
Wish MD5 can be faster.
Thanks.
It would be nice if we could get the md5 faster than now.
Is there any algorithm Calculating MD5 in parallel? Such as:
` // worker1 hasher.update(new Uint8Array(buffer)) // worker 2 hasher.update(new Uint8Array(buffer))
// main worker hasher.digest() `
thank you for your great work.