[issue35210] Use bytes + memoryview + resize instead of bytesarray + array in io.RawIOBase.read

tzickel report at bugs.python.org
Sat Nov 10 12:43:34 EST 2018


tzickel <icebreak at yahoo.com> added the comment:

How is that different from the situation today ? The bytearray passed to readinto() is deleted before the function ends.

This revision simply changes 2 mallocs and a memcpy to 1 malloc and a potential realloc.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35210>
_______________________________________


More information about the Python-bugs-list mailing list