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

Improve num_digits calculations #557

Closed
mborland opened this issue May 14, 2024 · 0 comments · Fixed by #560
Closed

Improve num_digits calculations #557

mborland opened this issue May 14, 2024 · 0 comments · Fixed by #560
Assignees

Comments

@mborland
Copy link
Member

128-bit and 256-bit are both O(N). These can be knocked down to O(log(N)) if we generate the arrays of zeros at compile time and then use a search tree.

@mborland mborland added the enhancement New feature or request label May 14, 2024
@mborland mborland self-assigned this May 14, 2024
@mborland mborland added optimization and removed enhancement New feature or request labels May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant