mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Install two code generation optimizations that depend on NOP.
Reduces the cost of "not" to almost zero.
This commit is contained in:
parent
2c9f889122
commit
9c18e81fb2
4 changed files with 35 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue