Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c0914e

Browse files
author
Stefan Krah
committed
_decimal is now 100x faster than the Python version in the pi benchmark.
1 parent dd159ce commit 0c0914e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/whatsnew/3.3.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ The new C version of the decimal module integrates the high speed libmpdec
628628
library for arbitrary precision correctly-rounded decimal floating point
629629
arithmetic. libmpdec conforms to IBM's General Decimal Arithmetic Specification.
630630

631-
Performance gains range from 10x for database applications to 80x for
631+
Performance gains range from 10x for database applications to 100x for
632632
numerically intensive applications. These numbers are expected gains
633633
for standard precisions used in decimal floating point arithmetic. Since
634634
the precision is user configurable, the exact figures may vary. For example,
@@ -640,7 +640,7 @@ at http://www.bytereef.org/mpdecimal/quickstart.html.
640640
+---------+-------------+--------------+-------------+
641641
| | decimal.py | _decimal | speedup |
642642
+=========+=============+==============+=============+
643-
| pi | 42.75s | 0.58s | 74x |
643+
| pi | 38.89s | 0.38s | 100x |
644644
+---------+-------------+--------------+-------------+
645645
| telco | 172.19s | 5.68s | 30x |
646646
+---------+-------------+--------------+-------------+

Misc/NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Library
147147

148148
- Issue #7652: Integrate the decimal floating point libmpdec library to speed
149149
up the decimal module. Performance gains of the new C implementation are
150-
between 12x and 80x, depending on the application.
150+
between 10x and 100x, depending on the application.
151151

152152
- Issue #3573: IDLE hangs when passing invalid command line args
153153
(directory(ies) instead of file(s)) (Patch by Guilherme Polo)

0 commit comments

Comments
 (0)