Message403822
shape is a pointer to array of Py_ssize_t of size ndim. array and memoryview do a trick to avoid memory allocation, but _testbuffer.ndarray allocates it dynamically in the heap. We can add a small static buffer in Py_buffer to avoid additional memory allocation in common cases. |
|
Date |
User |
Action |
Args |
2021-10-13 11:16:02 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, christian.heimes, petr.viktorin |
2021-10-13 11:16:02 | serhiy.storchaka | set | messageid: <1634123762.63.0.80603103554.issue45459@roundup.psfhosted.org> |
2021-10-13 11:16:02 | serhiy.storchaka | link | issue45459 messages |
2021-10-13 11:16:02 | serhiy.storchaka | create | |
|