Skip to content

Comments

Add BLAKE3 hasher to vfs#18781

Closed
tylerwilliams wants to merge 2 commits intobazelbuild:masterfrom
tylerwilliams:b3hasher
Closed

Add BLAKE3 hasher to vfs#18781
tylerwilliams wants to merge 2 commits intobazelbuild:masterfrom
tylerwilliams:b3hasher

Conversation

@tylerwilliams
Copy link
Contributor

@tylerwilliams tylerwilliams commented Jun 26, 2023

Add BLAKE3 hasher to vfs

This PR adds the Blake3Hasher and Blake3HashFunction classes to vfs and
makes them available under the flag --digest_function=BLAKE3.

I spent a little time trying to optimize performance more here, and am happy to
chat about different approaches (ByteBuffer vs byte[] vs unsafe vs mmap). In the
end this CL implements something pretty conservative, but there is room to get
more performance out of this with a different approach.

This is a partial commit for #18658.

Based off of #18731 -- will amend the commit when that is merged.

@tylerwilliams
Copy link
Contributor Author

tylerwilliams commented Jun 26, 2023

(going to edit/resend this)

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

Successfully merging this pull request may close these issues.

1 participant