Commit c9034e82 authored by Raymond Hettinger's avatar Raymond Hettinger

LIST_APPEND is predicably followed by JUMP_ABSOLUTE.

Reduces loop overhead by an additional 10%.
parent b89af380
......@@ -1231,7 +1231,10 @@ eval_frame(PyFrameObject *f)
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 @@ eval_frame(PyFrameObject *f)
break;
continue;
PREDICTED_WITH_ARG(JUMP_ABSOLUTE);
case JUMP_ABSOLUTE:
JUMPTO(oparg);
continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment