From 9c18e81fb23d60ea77bdf4f3c2649296f26e4a95 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 21 Jun 2004 16:31:15 +0000 Subject: Install two code generation optimizations that depend on NOP. Reduces the cost of "not" to almost zero. --- Python/ceval.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Python/ceval.c') diff --git a/Python/ceval.c b/Python/ceval.c index f66e318f58..088c8814ed 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) { -- cgit v1.2.1