Author: Armin Rigo <ar...@tunes.org>
Branch: stmgc-c7
Changeset: r72356:4f5e243c027d
Date: 2014-07-04 14:21 +0200
http://bitbucket.org/pypy/pypy/changeset/4f5e243c027d/

Log:    Improve the speed of some non-jitted parts of the code, by disabling
        the assert() there when compiled in non-debug mode.

diff --git a/rpython/translator/tool/cbuild.py 
b/rpython/translator/tool/cbuild.py
--- a/rpython/translator/tool/cbuild.py
+++ b/rpython/translator/tool/cbuild.py
@@ -366,4 +366,8 @@
 #else
 typedef unsigned char bool_t;
 #endif
+
+#if !defined(RPY_ASSERT) && !defined(RPY_LL_ASSERT)
+#  define NDEBUG
+#endif
 '''
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to