mirror of https://github.com/python/cpython.git
Compile _decimal without asserts and update benchmark results.
This commit is contained in:
parent
6f858a2eea
commit
a10e2fbe0b
|
@ -1119,7 +1119,7 @@ at http://www.bytereef.org/mpdecimal/quickstart.html.
|
||||||
+---------+-------------+--------------+-------------+
|
+---------+-------------+--------------+-------------+
|
||||||
| | decimal.py | _decimal | speedup |
|
| | decimal.py | _decimal | speedup |
|
||||||
+=========+=============+==============+=============+
|
+=========+=============+==============+=============+
|
||||||
| pi | 38.89s | 0.38s | 100x |
|
| pi | 42.02 | 0.345 | 120x |
|
||||||
+---------+-------------+--------------+-------------+
|
+---------+-------------+--------------+-------------+
|
||||||
| telco | 172.19s | 5.68s | 30x |
|
| telco | 172.19s | 5.68s | 30x |
|
||||||
+---------+-------------+--------------+-------------+
|
+---------+-------------+--------------+-------------+
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -1897,7 +1897,7 @@ def detect_ctypes(self, inc_dirs, lib_dirs):
|
||||||
|
|
||||||
def _decimal_ext(self):
|
def _decimal_ext(self):
|
||||||
extra_compile_args = []
|
extra_compile_args = []
|
||||||
undef_macros = ['NDEBUG']
|
undef_macros = []
|
||||||
if '--with-system-libmpdec' in sysconfig.get_config_var("CONFIG_ARGS"):
|
if '--with-system-libmpdec' in sysconfig.get_config_var("CONFIG_ARGS"):
|
||||||
include_dirs = []
|
include_dirs = []
|
||||||
libraries = ['mpdec']
|
libraries = ['mpdec']
|
||||||
|
|
Loading…
Reference in New Issue