Install two code generation optimizations that depend on NOP.

Reduces the cost of "not" to almost zero.
This commit is contained in:
Raymond Hettinger 2004-06-21 16:31:15 +00:00
parent 2c9f889122
commit 9c18e81fb2
4 changed files with 35 additions and 3 deletions

View file

@ -849,6 +849,9 @@ eval_frame(PyFrameObject *f)
/* case STOP_CODE: this is an error! */
case NOP:
goto fast_next_opcode;
case LOAD_FAST:
x = GETLOCAL(oparg);
if (x != NULL) {