make-github-pseudonymous-again/js-integer

Use a power of two as a base.

make-github-pseudonymous-again opened this issue · 0 comments

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?