Message415116
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. |
|
Date |
User |
Action |
Args |
2022-03-14 04:57:38 | Dennis Sweeney | set | recipients:
+ Dennis Sweeney |
2022-03-14 04:57:38 | Dennis Sweeney | set | messageid: <1647233858.4.0.304324509353.issue47009@roundup.psfhosted.org> |
2022-03-14 04:57:38 | Dennis Sweeney | link | issue47009 messages |
2022-03-14 04:57:38 | Dennis Sweeney | create | |
|