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

feat: Enable using thread_rng for faster WyHash initialisation #8

Merged
merged 3 commits into from
Mar 26, 2024

Conversation

Bluefinger
Copy link
Owner

Adds a new feature flag to allow the use of thread_rng for initialising WyHash. Using a user-space PRNG source adds a lot less overhead, which then enables faster hashing from start to finish. With getrandom alone, the initialisation takes around 237ns. With thread_rng, this takes around 8.1ns.

@Bluefinger Bluefinger added the enhancement New feature or request label Mar 26, 2024
@Bluefinger Bluefinger merged commit 6844aab into main Mar 26, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant