diff options
author | Jeffrey Yasskin <jyasskin@gmail.com> | 2008-03-03 01:27:03 (GMT) |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@gmail.com> | 2008-03-03 01:27:03 (GMT) |
commit | 9063a9904293fc8a37131e495362e89e3d2314a2 (patch) | |
tree | 7f76bdd1ebdef8599ed0bedca137f20351632fac /Python | |
parent | 56c4debe0d005c48e53fdafbf64aef894a4c5fc6 (diff) | |
download | cpython-9063a9904293fc8a37131e495362e89e3d2314a2.zip cpython-9063a9904293fc8a37131e495362e89e3d2314a2.tar.gz cpython-9063a9904293fc8a37131e495362e89e3d2314a2.tar.bz2 |
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.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index db9ce7d..f210c9f 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; } |