mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
Major change in the internal structure of the Decimal
number: now it does not store the mantissa as a tuple of numbers, but as a string. This avoids a lot of conversions, and achieves a speedup of 40%. The API remains intact. Thanks Mark Dickinson.
This commit is contained in:
parent
90b5bc3a7d
commit
72bc54faed
2 changed files with 223 additions and 305 deletions
527
Lib/decimal.py
527
Lib/decimal.py
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue