commit | 9063a9904293fc8a37131e495362e89e3d2314a2 | [log] [tgz] |
---|---|---|
author | Jeffrey Yasskin <jyasskin@gmail.com> | Mon Mar 03 01:27:03 2008 +0000 |
committer | Jeffrey Yasskin <jyasskin@gmail.com> | Mon Mar 03 01:27:03 2008 +0000 |
tree | 7f76bdd1ebdef8599ed0bedca137f20351632fac | |
parent | 56c4debe0d005c48e53fdafbf64aef894a4c5fc6 [diff] |
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.
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 @@ } continue; + PREDICTED(END_FINALLY); case END_FINALLY: v = POP(); if (PyInt_Check(v)) { @@ -2302,6 +2303,7 @@ x = POP(); Py_DECREF(x); } + PREDICT(END_FINALLY); break; }