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

Try parallelizing hashing over multiple files #40

Open
casey opened this issue Sep 9, 2024 · 1 comment
Open

Try parallelizing hashing over multiple files #40

casey opened this issue Sep 9, 2024 · 1 comment

Comments

@casey
Copy link
Owner

casey commented Sep 9, 2024

This is apropos of the discussion in BLAKE3-team/BLAKE3#205.

We should try parallelizing single-threaded reads over multiple files. Single-threaded reads which use update_reader would allow for more granular progress bars, and might wind up being more efficient overall.

@rot13maxi
Copy link

I like this idea. Spin up $CORE_COUNT number of threads, and show that many progress bars. Would be cool to see 8 or 16 progress bars whipping by. Since there's already a transitive dependency on Rayon, could experiment with their thread pool rather than rolling something from scratch (using Thread::spawn and mpsc channels)

@casey casey changed the title Try parallelizing hashing over multiple file Try parallelizing hashing over multiple files Sep 10, 2024
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