Author serhiy.storchaka
Recipients christian.heimes, petr.viktorin, serhiy.storchaka, vstinner
Date 2021-10-13.11:16:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634123762.63.0.80603103554.issue45459@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-10-13 11:16:02serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, christian.heimes, petr.viktorin
2021-10-13 11:16:02serhiy.storchakasetmessageid: <1634123762.63.0.80603103554.issue45459@roundup.psfhosted.org>
2021-10-13 11:16:02serhiy.storchakalinkissue45459 messages
2021-10-13 11:16:02serhiy.storchakacreate