https://github.com/sunsetquest/fast-biginteger-to-binarystring-and-benchmarks
This 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.
https://github.com/sunsetquest/fast-biginteger-to-binarystring-and-benchmarks
Last synced: 8 months ago
JSON representation
This 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.
- Host: GitHub
- URL: https://github.com/sunsetquest/fast-biginteger-to-binarystring-and-benchmarks
- Owner: SunsetQuest
- License: mit
- Created: 2022-07-17T04:18:18.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-17T04:18:23.000Z (almost 4 years ago)
- Last Synced: 2025-03-24T09:25:34.312Z (about 1 year ago)
- Language: C#
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# StackOverflow - BenchmarkBigIntegerToBinaryString