From: Neil Schemenauer Date: Sun, 1 Jun 2003 19:21:12 +0000 (+0000) Subject: Use fast_next_opcode shortcut for forward jump opcodes (it's safe and X-Git-Tag: v2.3c1~549 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4b570f2188f0914c5ba4f8c6a4f412a301c13a4;p=thirdparty%2FPython%2Fcpython.git Use fast_next_opcode shortcut for forward jump opcodes (it's safe and gives a small speedup). --- diff --git a/Python/ceval.c b/Python/ceval.c index c652b07b2c3a..4e5b4722991c 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2001,18 +2001,18 @@ eval_frame(PyFrameObject *f) case JUMP_FORWARD: JUMPBY(oparg); - continue; + goto fast_next_opcode; PREDICTED_WITH_ARG(JUMP_IF_FALSE); case JUMP_IF_FALSE: w = TOP(); if (w == Py_True) { PREDICT(POP_TOP); - continue; + goto fast_next_opcode; } if (w == Py_False) { JUMPBY(oparg); - continue; + goto fast_next_opcode; } err = PyObject_IsTrue(w); if (err > 0) @@ -2028,11 +2028,11 @@ eval_frame(PyFrameObject *f) w = TOP(); if (w == Py_False) { PREDICT(POP_TOP); - continue; + goto fast_next_opcode; } if (w == Py_True) { JUMPBY(oparg); - continue; + goto fast_next_opcode; } err = PyObject_IsTrue(w); if (err > 0) {