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

Skip to content

Commit a10e2fb

Browse files
author
Stefan Krah
committed
Compile _decimal without asserts and update benchmark results.
1 parent 6f858a2 commit a10e2fb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/whatsnew/3.3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ at http://www.bytereef.org/mpdecimal/quickstart.html.
11191119
+---------+-------------+--------------+-------------+
11201120
| | decimal.py | _decimal | speedup |
11211121
+=========+=============+==============+=============+
1122-
| pi | 38.89s | 0.38s | 100x |
1122+
| pi | 42.02 | 0.345 | 120x |
11231123
+---------+-------------+--------------+-------------+
11241124
| telco | 172.19s | 5.68s | 30x |
11251125
+---------+-------------+--------------+-------------+

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,7 @@ def detect_ctypes(self, inc_dirs, lib_dirs):
18971897

18981898
def _decimal_ext(self):
18991899
extra_compile_args = []
1900-
undef_macros = ['NDEBUG']
1900+
undef_macros = []
19011901
if '--with-system-libmpdec' in sysconfig.get_config_var("CONFIG_ARGS"):
19021902
include_dirs = []
19031903
libraries = ['mpdec']

0 commit comments

Comments
 (0)