Message259465
| 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. |
|