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 christian.heimes
Recipients christian.heimes, petr.viktorin, pitrou, serhiy.storchaka, vstinner
Date 2021-10-18.17:18:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
CC Antoine for his expertise of the buffer protocol

Opaque Py_Buffer and PyObject structs will require a different approach and prevent some optimizations. The consumer will have to malloc() a Py_buffer struct on the heap. In non-trivial cases the producer (exporter) may have to malloc() another blob and store it in Py_buffer.internal [1]. I'm not particularly worried about the performance of malloc here.

[1] https://docs.python.org/3/c-api/buffer.html?highlight=pybuffer#c.Py_buffer.internal
History
Date User Action Args
2021-10-18 17:18:41christian.heimessetrecipients: + christian.heimes, pitrou, vstinner, petr.viktorin, serhiy.storchaka
2021-10-18 17:18:41christian.heimessetmessageid: <[email protected]>
2021-10-18 17:18:41christian.heimeslinkissue45459 messages
2021-10-18 17:18:41christian.heimescreate