[New-bugs-announce] [issue26200] SETREF adds unnecessary work in some cases

Raymond Hettinger report at bugs.python.org
Mon Jan 25 13:03:44 EST 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue26200>
_______________________________________


More information about the New-bugs-announce mailing list