[Python-Dev] pre-PEP: The Safe Buffer Interface

Neil Hodgson nhodgson@bigpond.net.au
Wed, 31 Jul 2002 12:15:28 +1000


Guido van Rossum:

> If the buffer is relatively small, copying the data an extra time
> shouldn't be a problem, and you can use the old API.
>
> If the buffer is huge, you probably shouldn't want to move the buffer
> around in memory anyway,

   Even large (or huge) buffers may need extension (inserting text in
Scintilla, adding a frame to a movie), leading to a reallocation and thus a
move.

   Neil