gh-129005: _pyio.BufferedIO remove copy on readall (#129454)
Slicing buf and appending chunk would always result in a copy. Commonly in a readall() there is no already read data in buf, and the amount of data read may be large, so the copy is expensive.
C
Cody Maloney committed
e1c4ba928852eac0b0e0bded1c314e3e36975286
Parent: 3bebe46
Committed by GitHub <noreply@github.com>
on 1/30/2025, 11:23:25 AM