Closed tareknaser closed 5 months ago
Let's finish the benchmarks first:
After we have index benchmark, we'll be able to judge better about performance penalty of Blake3. Collision tracking, necessary for CRC32, could eat some performance up, too.
This PR should be rewritten when https://github.com/ARK-Builders/arklib/pull/90 is merged here and into ark-rust
as well.
I can re rewrite the logic in ark-rust
directly so that it implements ResourceIdTrait
Closing this in favor of https://github.com/ARK-Builders/ark-rust/pull/32
Description
This pull request updates the hashing method for the
ResourceId
struct, replacingCRC32
withBLAKE3
hash function. Related Issue: #65Changes
The changes include:
ResourceId::compute_bytes
method using thecriterion
crate with thehtml_reports
feature enabled. Runcargo bench
to generate benchmarks in the/target/criterion
folderBLAKE3
is a cryptographic hash function