compile.c always emits END_FINALLY after WITH_CLEANUP, so predict that in

ceval.c. This is worth about a .03-.04us speedup on a simple with block.
This commit is contained in:
Jeffrey Yasskin 2008-03-03 01:27:03 +00:00
parent 56c4debe0d
commit 9063a99042
1 changed files with 2 additions and 0 deletions

View File

@ -1694,6 +1694,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
} }
continue; continue;
PREDICTED(END_FINALLY);
case END_FINALLY: case END_FINALLY:
v = POP(); v = POP();
if (PyInt_Check(v)) { if (PyInt_Check(v)) {
@ -2302,6 +2303,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
x = POP(); x = POP();
Py_DECREF(x); Py_DECREF(x);
} }
PREDICT(END_FINALLY);
break; break;
} }