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

optimize hamming-distance calculation #6

Open
prataprc opened this issue Mar 8, 2021 · 0 comments
Open

optimize hamming-distance calculation #6

prataprc opened this issue Mar 8, 2021 · 0 comments

Comments

@prataprc
Copy link
Owner

prataprc commented Mar 8, 2021

We calculate hamming distance by counting ones in u32 type. We are using u32::count_ones() for this purpose. Not sure how rust will compile to target platform. More research is needed to understand this cost of count_ones for different platforms.

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

1 participant