diff options
author | Cody Maloney <cmaloney@users.noreply.github.com> | 2025-01-30 03:14:23 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-30 11:14:23 +0000 |
commit | f927204f64b3f8dbecec784e05bc8e25d2a78b2e (patch) | |
tree | 3efe8d458ac0129cd7200a00c97ff2fd89557c8b /Python/pylifecycle.c | |
parent | 6c63afc3be9dd612f587fe7869c1f317d5ea37cc (diff) | |
download | cpython-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