diff options
author | Raymond Hettinger <python@rcn.com> | 2004-06-21 16:31:15 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-06-21 16:31:15 (GMT) |
commit | 9c18e81fb23d60ea77bdf4f3c2649296f26e4a95 (patch) | |
tree | b0a494cfa23bf97cbbd52019328a22c32db9e524 /Python/ceval.c | |
parent | 2c9f889122b48395c1997b08dd328f33f64f1ecd (diff) | |
download | cpython-9c18e81fb23d60ea77bdf4f3c2649296f26e4a95.zip cpython-9c18e81fb23d60ea77bdf4f3c2649296f26e4a95.tar.gz cpython-9c18e81fb23d60ea77bdf4f3c2649296f26e4a95.tar.bz2 |
Install two code generation optimizations that depend on NOP.
Reduces the cost of "not" to almost zero.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index f66e318..088c881 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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) { |