Inada Naoki <songofaca...@gmail.com> added the comment:
>> This makes list comparison 2x slower. > > This is affected by PR 17734? or PyObject_RichCompare patched? Caused by PR 17734. > Would you like to revert PR 17734? Calling Py_INCREF and Py_DECREF in > PyObject_RichCompare or do_richcompare will take the same effect, no? Moving INCREF and DECREF is a huge change. It is just a future idea to prevent same type of bugs. I think it can not be backported. To fix this issue with minimum performance regression, I think PR 17766 is the best solution. So no need to revert PR 17734. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38588> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com