[issue47009] Streamline list.append for the common case

Inada Naoki report at bugs.python.org
Mon Mar 14 04:19:46 EDT 2022


Inada Naoki <songofacandy at gmail.com> added the comment:

Hmm. Would you measure benefit from inlining and skipping incref/decref separately?

If benefit of inlining is very small, making _PyList_AppendTakeRef() as regular internal API looks better to me.

----------
nosy: +methane

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47009>
_______________________________________


More information about the Python-bugs-list mailing list