LIST_APPEND is predicably followed by JUMP_ABSOLUTE.
Reduces loop overhead by an additional 10%.
diff --git a/Python/ceval.c b/Python/ceval.c
index 71fd547..d3a0053 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1231,7 +1231,10 @@
err = PyList_Append(v, w);
Py_DECREF(v);
Py_DECREF(w);
- if (err == 0) continue;
+ if (err == 0) {
+ PREDICT(JUMP_ABSOLUTE);
+ continue;
+ }
break;
case INPLACE_POWER:
@@ -2061,6 +2064,7 @@
break;
continue;
+ PREDICTED_WITH_ARG(JUMP_ABSOLUTE);
case JUMP_ABSOLUTE:
JUMPTO(oparg);
continue;