diff Python/ceval.c @ 45624:6068b75ec27a legacy-trunk

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.
author Jeffrey Yasskin <jyasskin@gmail.com>
date Mon, 03 Mar 2008 01:27:03 +0000
parents a3d5700b1d5a
children 343597c7d682
line wrap: on
line diff
--- a/Python/ceval.c	Mon Mar 03 00:38:58 2008 +0000
+++ b/Python/ceval.c	Mon Mar 03 01:27:03 2008 +0000
@@ -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;
 		}