Skip to content
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

超大体积文件多线程计算 #71

Open
tenglongwentian opened this issue Nov 16, 2023 · 2 comments
Open

超大体积文件多线程计算 #71

tenglongwentian opened this issue Nov 16, 2023 · 2 comments

Comments

@tenglongwentian
Copy link

对于一个文件来讲,如何引入web worker并行计算哈希值?本地尝试了一下,计算每个文件分块的哈希值计算挺快的,是以前的几十倍,但是不知道如何将分块的哈希值合并。(要求与文件整体哈希值一致)

@tenglongwentian
Copy link
Author

文件分块哈希值合并

@catlair
Copy link

catlair commented Apr 19, 2024

md5 是线性的,必须从前向后依次计算,前面的结果必定影响后面的结果。

分块应该改用其它算法

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

No branches or pull requests

2 participants