This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jneb
Recipients docs@python, jneb, mark.dickinson, serhiy.storchaka, skrah
Date 2016-02-03.09:42:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454492547.73.0.915660717034.issue26256@psf.upfronthosting.co.za>
In-reply-to
Content
OMG is decimal that fast?
Maybe I should change the issue then to "documentation missing": it nowhere says in the documentation that decimal has optimized multiprecision computations. It only says that precision "can be as large as needed for a given problem", but I never realized that that included millions of digits.
It computed to my complete surprise 2**2**29 to full precision (161 million decimal digits) in about a minute. That smells suspiciously like FFT style multiplication, which implies that it is way more sophisticated than integer multiplication!
I suggest that the documentation of the decimal module recommends using decimal for multiprecision computations, as long as you use the builtin version.
History
Date User Action Args
2016-02-03 09:42:27jnebsetrecipients: + jneb, mark.dickinson, skrah, docs@python, serhiy.storchaka
2016-02-03 09:42:27jnebsetmessageid: <1454492547.73.0.915660717034.issue26256@psf.upfronthosting.co.za>
2016-02-03 09:42:27jneblinkissue26256 messages
2016-02-03 09:42:27jnebcreate