sunsetquest / fast-biginteger-to-binarystring-and-benchmarks Goto Github PK
View Code? Open in Web Editor NEWThis project was to test several other BigInteger to Binary String methods and then to build my own. Of the ones that I test this one is about 5X faster then any other out there. It also supports zero and negative numbers. The function is fast because: (1) it minimally allocates memory (2) does not make many calls to other functions, and (3) carefully copies over bit to byte with as minimal work as possible.
License: MIT License