cpython/Modules/_io
morotti 8fa1248685
gh-117151: optimize BufferedWriter(), do not buffer writes that are the buffer size (GH-118037)
BufferedWriter() was buffering calls that are the exact same size as the buffer. it's a very common case to read/write in blocks of the exact buffer size.

it's pointless to copy a full buffer, it's costing extra memory copy and the full buffer will have to be written in the next call anyway.

Co-authored-by: rmorotti <romain.morotti@man.com>
2024-04-23 18:51:20 +03:00
..
clinic
_iomodule.c
_iomodule.h
bufferedio.c gh-117151: optimize BufferedWriter(), do not buffer writes that are the buffer size (GH-118037) 2024-04-23 18:51:20 +03:00
bytesio.c gh-117068: Remove useless code in bytesio.c:resize_buffer() (GH-117069) 2024-03-22 11:25:38 +00:00
fileio.c gh-117764: Add signatures for __reduce__ and __reduce_ex__ in the _io module (GH-117773) 2024-04-12 12:22:17 +03:00
iobase.c
stringio.c
textio.c gh-117764: Add signatures for __reduce__ and __reduce_ex__ in the _io module (GH-117773) 2024-04-12 12:22:17 +03:00
winconsoleio.c