Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r72355:7c2871e9cb26 Date: 2014-07-04 14:21 +0200 http://bitbucket.org/pypy/pypy/changeset/7c2871e9cb26/
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 @@ -361,4 +361,8 @@ typedef unsigned long Unsigned; # define SIGNED_MIN LONG_MIN #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