]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89550: Buffer GzipFile.write to reduce execution time by ~15% (#101251)
authorArjun <ccldarjun@icloud.com>
Mon, 8 May 2023 17:55:59 +0000 (10:55 -0700)
committerGitHub <noreply@github.com>
Mon, 8 May 2023 17:55:59 +0000 (17:55 +0000)
commit9af485436b83003b5705a6e54bdeb900c70e0c69
tree69506164b3b413a22146cbf7250eaec8836d7b3d
parent405eacc1b87a42e19fd176131e70537f0539e05e
gh-89550: Buffer GzipFile.write to reduce execution time by ~15% (#101251)

Use `io.BufferedWriter` to buffer gzip writes.

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/gzip.py
Misc/NEWS.d/next/Library/2023-01-22-14-53-12.gh-issue-89550.c1U23f.rst [new file with mode: 0644]