Commit ceaaced4 authored by Stefan Krah's avatar Stefan Krah

Compile _decimal without asserts and update benchmark results.

parent eaaf9e92
...@@ -1119,7 +1119,7 @@ at http://www.bytereef.org/mpdecimal/quickstart.html. ...@@ -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 |
+---------+-------------+--------------+-------------+ +---------+-------------+--------------+-------------+
......
...@@ -1897,7 +1897,7 @@ class PyBuildExt(build_ext): ...@@ -1897,7 +1897,7 @@ class PyBuildExt(build_ext):
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']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment