New submission from Raymond Hettinger: Application of the SETREF macro was not code neutral in a number of cases. The SETREF macro always uses Py_XDECREF where the original code correctly used a faster and lighter Py_DECREF.
There should be an XSETREF variant and more care should be taken when applying these macros wholesale to the entire code base. ---------- assignee: serhiy.storchaka components: Interpreter Core messages: 258913 nosy: rhettinger, serhiy.storchaka priority: normal severity: normal status: open title: SETREF adds unnecessary work in some cases type: performance versions: Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26200> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com