[issue32571] Speed up and clean up getting optional attributes in C code
Serhiy Storchaka
report at bugs.python.org
Wed Jan 17 12:35:42 EST 2018
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
PR 5222 provides functions _PyObject_LookupAttr() and _PyObject_LookupAttrId() with alternate interface. Some code becomes even more simpler.
The possible drawback of this approach is that the compiler should allocate the variable for the result on the stack instead of passing the result in a register (unless compilers are smart enough for optimizing out this case).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32571>
_______________________________________
More information about the Python-bugs-list
mailing list