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 the BitArray binary representation #2

Closed
cortze opened this issue Jul 24, 2023 · 1 comment
Closed

Optimize the BitArray binary representation #2

cortze opened this issue Jul 24, 2023 · 1 comment

Comments

@cortze
Copy link
Owner

cortze commented Jul 24, 2023

Description

Due to the problems with the std binary representation of integers in Python, I'm walking around the BitArrays using a string to represent in binary a given number (ensuring the availability of the first upper zeros). In Python, the binary representation starts from the first 1 in the binary number, missing all the zeros before it.

Ideally, I should treat that string as an array of booleans, which should perform a bit better.

@cortze
Copy link
Owner Author

cortze commented Aug 3, 2023

closed with #8

@cortze cortze closed this as completed Aug 3, 2023
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