Commits

Stefan Krah  committed 259450a Draft

Compile _decimal without asserts and update benchmark results.

  • Participants
  • Parent commits e2fec01

Comments (0)

Files changed (2)

File Doc/whatsnew/3.3.rst

    +---------+-------------+--------------+-------------+
    |         |  decimal.py |   _decimal   |   speedup   |
    +=========+=============+==============+=============+
-   |   pi    |    38.89s   |    0.38s     |    100x     |
+   |   pi    |    42.02    |    0.345     |    120x     |
    +---------+-------------+--------------+-------------+
    | telco   |   172.19s   |    5.68s     |     30x     |
    +---------+-------------+--------------+-------------+
 
     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']