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

Use a power of two as a base. #52

Open
make-github-pseudonymous-again opened this issue May 11, 2020 · 0 comments
Open

Use a power of two as a base. #52

make-github-pseudonymous-again opened this issue May 11, 2020 · 0 comments

Comments

@make-github-pseudonymous-again
Copy link
Owner

This would enable to use fast conversion to hexadecimal. With the current implementation in @aureooms/js-integer-big-endian we can use base = Math.pow(2,26) | 0. Although v8 does not seem to be able to optimize modulo and division operations at the moment, it could happen eventually?

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