aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorCody Maloney <cmaloney@users.noreply.github.com>2025-01-30 03:14:23 -0800
committerGitHub <noreply@github.com>2025-01-30 11:14:23 +0000
commitf927204f64b3f8dbecec784e05bc8e25d2a78b2e (patch)
tree3efe8d458ac0129cd7200a00c97ff2fd89557c8b /Python/pylifecycle.c
parent6c63afc3be9dd612f587fe7869c1f317d5ea37cc (diff)
downloadcpython-f927204f64b3f8dbecec784e05bc8e25d2a78b2e.tar.gz
cpython-f927204f64b3f8dbecec784e05bc8e25d2a78b2e.zip
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.
Diffstat (limited to 'Python/pylifecycle.c')
0 files changed, 0 insertions, 0 deletions