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 vstinner
Recipients amaury.forgeotdarc, arigo, ghaering, iritkatriel, jcea, lkraav, pablogsal, pitrou, pxd, vstinner
Date 2021-02-15.22:40:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613428858.14.0.240829478792.issue15108@roundup.psfhosted.org>
In-reply-to
Content
> That's a lot slower unfortunately

Ah sorry, I forgot PyTuple_Pack(3, item1, item2, item3) which should be very efficient. This function is also safe: only track the tuple when it is fully initialized.

> This problem also is not unique to tuples, although is mainly prominent in them.

PyList_New() is also affected. Do you think about other types?

PyDict_New() and PySet_New() create empty containers and so are ok.
History
Date User Action Args
2021-02-15 22:40:58vstinnersetrecipients: + vstinner, arigo, jcea, ghaering, amaury.forgeotdarc, pitrou, lkraav, pxd, pablogsal, iritkatriel
2021-02-15 22:40:58vstinnersetmessageid: <1613428858.14.0.240829478792.issue15108@roundup.psfhosted.org>
2021-02-15 22:40:58vstinnerlinkissue15108 messages
2021-02-15 22:40:57vstinnercreate