]> granicus.if.org Git - python/commitdiff
Compile _decimal without asserts and update benchmark results.
authorStefan Krah <skrah@bytereef.org>
Sat, 1 Sep 2012 12:21:22 +0000 (14:21 +0200)
committerStefan Krah <skrah@bytereef.org>
Sat, 1 Sep 2012 12:21:22 +0000 (14:21 +0200)
Doc/whatsnew/3.3.rst
setup.py

index 27bf12dd9f34c61c052288e9a6f744c494ff32c5..9d8b80d93b016ebdf174f9b75bad9c8dc1e62c23 100644 (file)
@@ -1119,7 +1119,7 @@ at http://www.bytereef.org/mpdecimal/quickstart.html.
    +---------+-------------+--------------+-------------+
    |         |  decimal.py |   _decimal   |   speedup   |
    +=========+=============+==============+=============+
-   |   pi    |    38.89s   |    0.38s     |    100x     |
+   |   pi    |    42.02    |    0.345     |    120x     |
    +---------+-------------+--------------+-------------+
    | telco   |   172.19s   |    5.68s     |     30x     |
    +---------+-------------+--------------+-------------+
index 7f863a47896b14e91ee32d5d785caef9bbb2b5a6..9ddf2e9add3bda114029645216cc2a5257df1873 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1897,7 +1897,7 @@ class PyBuildExt(build_ext):
 
     def _decimal_ext(self):
         extra_compile_args = []
-        undef_macros = ['NDEBUG']
+        undef_macros = []
         if '--with-system-libmpdec' in sysconfig.get_config_var("CONFIG_ARGS"):
             include_dirs = []
             libraries = ['mpdec']