Message387068
> 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. |
|
Date |
User |
Action |
Args |
2021-02-15 22:40:58 | vstinner | set | recipients:
+ vstinner, arigo, jcea, ghaering, amaury.forgeotdarc, pitrou, lkraav, pxd, pablogsal, iritkatriel |
2021-02-15 22:40:58 | vstinner | set | messageid: <1613428858.14.0.240829478792.issue15108@roundup.psfhosted.org> |
2021-02-15 22:40:58 | vstinner | link | issue15108 messages |
2021-02-15 22:40:57 | vstinner | create | |
|