summaryrefslogtreecommitdiffstats
path: root/Python/peephole.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix error handling in PyCode_Optimize, by Alexander Schremmer at EuroPython ↵Georg Brandl2009-06-291-6/+9
| | | | sprint.
* teach the peepholer about SETUP_WITHBenjamin Peterson2009-05-261-0/+3
|
* Backport r69961 to trunk, replacing JUMP_IF_{TRUE,FALSE} withJeffrey Yasskin2009-02-281-35/+61
| | | | | | POP_JUMP_IF_{TRUE,FALSE} and JUMP_IF_{TRUE,FALSE}_OR_POP. This avoids executing a POP_TOP on each conditional and sometimes allows the peephole optimizer to skip a JUMP_ABSOLUTE entirely. It speeds up list comprehensions significantly.
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-091-8/+8
| | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
* Renamed PyString to PyBytesChristian Heimes2008-05-261-8/+8
|
* Try to fix a bunch of compiler warnings on Win64.Neal Norwitz2008-03-251-2/+2
|
* Fix indentationNeal Norwitz2008-02-251-1/+1
|
* Use macro version of GET_SIZE to avoid Coverity warning (#150) about a ↵Neal Norwitz2007-06-091-1/+1
| | | | possible error.
* Fix embarrassing typo and fix constantification of NoneRaymond Hettinger2007-03-021-6/+10
|
* Update the peephole optimizer to remove more dead code (jumps after returns)Neal Norwitz2006-10-141-4/+15
| | | | and inline jumps to returns.
* Move peephole optimizer to separate file.Jeremy Hylton2006-08-211-0/+615