diff Python/exceptions.c @ 28716:ab4fbf8ebab3 legacy-trunk

Improved the bytecode optimizer. * Can now test for basic blocks. * Optimize inverted comparisions. * Optimize unary_not followed by a conditional jump. * Added a new opcode, NOP, to keep code size constant. * Applied NOP to previous transformations where appropriate. Note, the NOP would not be necessary if other functions were added to re-target jump addresses and update the co_lnotab mapping. That would yield slightly faster and cleaner bytecode at the expense of optimizer simplicity and of keeping it decoupled from the line-numbering structure.
author Raymond Hettinger <python@rcn.com>
date Tue, 22 Apr 2003 06:49:11 +0000
parents b38cebc76d82
children aa5cb8e3b9ea df654861ccf6
line wrap: on
line diff