[pypy-commit] pypy stmgc-c7: Improve the speed of some non-jitted parts of the code, by disabling the assert() there when
arigo
noreply at buildbot.pypy.org
Fri Jul 4 14:23:49 CEST 2014
Author: Armin Rigo <arigo at 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
'''
More information about the pypy-commit
mailing list