[Python-checkins] cpython: Compile _decimal without asserts and update benchmark results.

stefan.krah python-checkins at python.org
Sat Sep 1 14:27:06 CEST 2012


http://hg.python.org/cpython/rev/259450a161ef
changeset:   78828:259450a161ef
user:        Stefan Krah <skrah at bytereef.org>
date:        Sat Sep 01 14:21:22 2012 +0200
summary:
  Compile _decimal without asserts and update benchmark results.

files:
  Doc/whatsnew/3.3.rst |  2 +-
  setup.py             |  2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -1119,7 +1119,7 @@
    +---------+-------------+--------------+-------------+
    |         |  decimal.py |   _decimal   |   speedup   |
    +=========+=============+==============+=============+
-   |   pi    |    38.89s   |    0.38s     |    100x     |
+   |   pi    |    42.02    |    0.345     |    120x     |
    +---------+-------------+--------------+-------------+
    | telco   |   172.19s   |    5.68s     |     30x     |
    +---------+-------------+--------------+-------------+
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -1897,7 +1897,7 @@
 
     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']

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list