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

Python 3.10 has built-in bit_count #25

Open
Sxderp opened this issue Nov 17, 2024 · 1 comment
Open

Python 3.10 has built-in bit_count #25

Sxderp opened this issue Nov 17, 2024 · 1 comment

Comments

@Sxderp
Copy link

Sxderp commented Nov 17, 2024

https://docs.python.org/3/library/stdtypes.html#int.bit_count

It's implemented in C so should have similar speed to the C extension in the repo. By switching to the built-in the compile / module dependency can be removed.

@unmade
Copy link
Owner

unmade commented Nov 19, 2024

Hey @Sxderp,

Let me check performance of that method and maybe I'll add it. It is kinda an abandoned project of mine :)

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