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

Implements parallel leaf hashing in process_sorted_pairs_to_leaves #2

Open
wants to merge 3 commits into
base: krushimir/subtree_mutations
Choose a base branch
from

Conversation

krushimir
Copy link

This PR introduces an optimization to process_sorted_pairs_to_leaves by parallelizing the leaf hashing process, which was previously executed sequentially.

For a 10M-entry tree construction on a 128-thread CPU, the function runtime was reduced from ~90 to ~6 secs.

@krushimir krushimir force-pushed the krushimir/parallel_leaf_hashing branch from a5c05ed to 79fe2f2 Compare January 23, 2025 17:12
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