From 9063a9904293fc8a37131e495362e89e3d2314a2 Mon Sep 17 00:00:00 2001 From: Jeffrey Yasskin Date: Mon, 3 Mar 2008 01:27:03 +0000 Subject: [PATCH] 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. --- Python/ceval.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Python/ceval.c b/Python/ceval.c index db9ce7dcd46..f210c9f8877 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1694,6 +1694,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) } continue; + PREDICTED(END_FINALLY); case END_FINALLY: v = POP(); if (PyInt_Check(v)) { @@ -2302,6 +2303,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) x = POP(); Py_DECREF(x); } + PREDICT(END_FINALLY); break; }