-
Notifications
You must be signed in to change notification settings - Fork 1
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
添加xxhash #10
Comments
很有趣,我再了解一下,评估加入的可能性。 |
官方网站:https://xxhash.com xxhash 实现:
xxhash 包含的算法:XXH32、XXH64、XXH3(XXH3_64bits,XXH3_128bits) |
https://docs.rs/twox-hash/latest/src/twox_hash/xxhash3_128.rs.html#21 |
好像c实现是最完整的? |
需要使用c bindings,这样似乎不能以单文件形式分发了,交叉编译也可能出现问题。 似乎 xxhash3_128 并不是最常用的,我想可以等待一下直到 twox_hash 实现这个算法。先支持其他的算法。 |
我越发认为 hashes_backend 和 ring_backend 仅是 ezcheck 设计之初的产物,不太有使用价值。 |
本来就是,我也不理解为啥你要搞这么多release🤦♂️。理论上就编译一个mix就够了,为啥需要那么多版本。 |
那就只能暂时不支持xxhash3_128?问题也不大,能跑就行,太复杂了反而不好操作 |
是的,现在还不支持xxhash_128。目前的mix版本已经可以用xxhash了,如果有兴趣可以自行编译+测试一下。如果有问题请及时告诉我。 我准备改改文档之类的问题再更新版本。 |
ring支持新架构的速度比较慢,如果再诞生一个新平台,ring后端可能需要等几年才能完成支持。 hashes虽然慢但和rust支持的平台相同。 所以设计之初有意想隔离开,以提供最全面的平台支持。 其实我觉得应该有个hashes+twox_hash的非硬件加速版本,这是最保守、平台支持最广的。但我有些懒😂 |
全部搞最简单的方式,一股脑集成进去就行。不要给自己上强度😄 |
希望能添加 xxhash 算法,这是世界上最快的hash算法,对于文件校验这种工作来说很合适。
The text was updated successfully, but these errors were encountered: