Mark Dickinson <dicki...@gmail.com> added the comment:

Right; the naive algorithm for converting the internal binary representation to 
the decimal representation is quadratic time. In *theory* we could implement a 
subquadratic time algorithm, but the complexity of such an implementation 
outweighs the benefits. Python really isn't targeted at super-fast 
million-digit arithmetic; that's more the domain of libraries like GMP.

Closing as "won't fix". I'd recommend using gmpy2[1] instead. Alternatively, 
you may be able to make the `Decimal` type work with a suitably huge precision.

Related: #26256.

[1] gmpy2: https://gmpy2.readthedocs.io/en/latest/intro.html

----------
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40793>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to