mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
SF patch #1020845: Decimal performance enhancements
(Contributed by Nick Coghlan.) Various code cleanups and optimizations (saves about 40% on testsuite execution time and on the telco benchmark). * caches results of various operations on self (esp. checks for being a special value). * _WorkRep now uses ints and longs for intermediate computations.
This commit is contained in:
parent
6cc1350807
commit
636a6b100f
1 changed files with 434 additions and 497 deletions
931
Lib/decimal.py
931
Lib/decimal.py
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue