[pypy-issue] [issue1188] Support -OO

Armin Rigo tracker at bugs.pypy.org
Mon Apr 22 22:18:11 CEST 2013


Armin Rigo <armin.rigo at gmail.com> added the comment:

Ah, another idea for -O support: we could also support it from the same .pyc
files simply by having "assert xyz" compile a conditional jump first.  The jump
would skip the whole assert statement when running in -O mode, and do nothing
when running in normal mode.  This would have a very minor impact on performance
(and no impact on the JITted code).

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1188>
________________________________________


More information about the pypy-issue mailing list