项目作者: taylordotfish

项目描述 :
Quickly convert huge integers between bases
高级语言: Python
项目地址: git://github.com/taylordotfish/fastconv.git
创建时间: 2021-02-03T12:44:49Z
项目社区:https://github.com/taylordotfish/fastconv

开源协议:GNU Affero General Public License v3.0

下载


fastconv

fastconv quickly converts huge integers between different bases. It splits
up the integers into smaller chunks, processes the chunks individually, and
recombines the results. Even without parallelization, this results in a massive
speed improvement over iterated divisions of the original integer, but fastconv
also processes the chunks in parallel for even faster conversions.

Usage

number_to_digits.py converts an integer (stored as a big-endian binary
integer or a Python int) to a sequence of base-b digits. Run
./number_to_digits.py for usage information.

digits_to_number.py converts a sequence of base-b digits to an
integer (stored as a big-endian binary integer or a Python int). Run
./digits_to_number.py for usage information.

Dependencies

  • Python ≥ 3.7

License

fastconv is licensed under version 3 or later of the GNU Affero General Public
License. See LICENSE.