[issue4941] Tell GCC Py_DECREF is unlikely to call the destructor

Daniel Diniz report at bugs.python.org
Tue Jan 20 23:44:01 CET 2009


Daniel Diniz <ajaksu at gmail.com> added the comment:

New version of the patch, as well as one that doesn't touch Py_DECREF
but defines likely and unlikely. Then, three ceval patches that result
in small speedups (2% to 8% here), but don't play well together (neither
with the Py_DECREF one).

Since I get speedups for some changes and slowdowns when more than one
is applied, I suspect my system is hitting some limitation (register
stavation?) and contributing more noise that signal :/

Added file: http://bugs.python.org/file12813/likely_decref.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4941>
_______________________________________


More information about the Python-bugs-list mailing list