diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2003-06-01 19:21:12 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2003-06-01 19:21:12 (GMT) |
commit | c4b570f2188f0914c5ba4f8c6a4f412a301c13a4 (patch) | |
tree | d9171ebead58cf41d7151a606db863741bcdb911 /Python | |
parent | 5ddef75fcf650784eb93d580ba7d405152966823 (diff) | |
download | cpython-c4b570f2188f0914c5ba4f8c6a4f412a301c13a4.zip cpython-c4b570f2188f0914c5ba4f8c6a4f412a301c13a4.tar.gz cpython-c4b570f2188f0914c5ba4f8c6a4f412a301c13a4.tar.bz2 |
Use fast_next_opcode shortcut for forward jump opcodes (it's safe and
gives a small speedup).
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index c652b07..4e5b472 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) { |