gh-129005: Align FileIO.readall() allocation (#129458)
Both now use a pre-allocated buffer of length `bufsize`, fill it using a readinto(), and have matching "expand buffer" logic. On my machine this takes: `./python -m test -M8g -uall test_largefile -m test_large_read -v` from ~3.7 seconds to ~3.4 seconds.
C
Cody Maloney committed
f927204f64b3f8dbecec784e05bc8e25d2a78b2e
Parent: 6c63afc
Committed by GitHub <noreply@github.com>
on 1/30/2025, 11:14:23 AM