Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24f33b5 commit d65f42aCopy full SHA for d65f42a
1 file changed
Python/ceval.c
@@ -1424,6 +1424,12 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
1424
PyObject *right = POP();
1425
PyObject *left = TOP();
1426
PyObject *sum;
1427
+ /* NOTE(haypo): Please don't try to micro-optimize int+int on
1428
+ CPython using bytecode, it is simply worthless.
1429
+ See http://bugs.python.org/issue21955 and
1430
+ http://bugs.python.org/issue10044 for the discussion. In short,
1431
+ no patch shown any impact on a realistic benchmark, only a minor
1432
+ speedup on microbenchmarks. */
1433
if (PyUnicode_CheckExact(left) &&
1434
PyUnicode_CheckExact(right)) {
1435
sum = unicode_concatenate(left, right, f, next_instr);
0 commit comments