This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Dennis Sweeney
Recipients Dennis Sweeney
Date 2022-03-14.04:57:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647233858.4.0.304324509353.issue47009@roundup.psfhosted.org>
In-reply-to
Content
list_resize is a long function that probably won't get inlined. But for the vast majority of cases in list.append, we just need to check whether the list is big enough (not whether it's small enough, or whether it's null or the wrong type), then insert and update the size. This can be inlined, with an actual call only taking place whenever we need to resize.

We can also add a reference-consuming version of PyList_Append to elide an INCREF/DECREF pair.
History
Date User Action Args
2022-03-14 04:57:38Dennis Sweeneysetrecipients: + Dennis Sweeney
2022-03-14 04:57:38Dennis Sweeneysetmessageid: <1647233858.4.0.304324509353.issue47009@roundup.psfhosted.org>
2022-03-14 04:57:38Dennis Sweeneylinkissue47009 messages
2022-03-14 04:57:38Dennis Sweeneycreate