]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41486: Faster bz2/lzma/zlib via new output buffering (GH-21740)
authorMa Lin <animalize@users.noreply.github.com>
Wed, 28 Apr 2021 06:58:54 +0000 (14:58 +0800)
committerGitHub <noreply@github.com>
Wed, 28 Apr 2021 06:58:54 +0000 (23:58 -0700)
commitf9bedb630e8a0b7d94e1c7e609b20dfaa2b22231
treeca8e232aebdae960f8a55737897cd20766df71ca
parenta5e64444e6df7d1d498576bab26deaddc288a7bd
bpo-41486: Faster bz2/lzma/zlib via new output buffering (GH-21740)

Faster bz2/lzma/zlib via new output buffering.
Also adds .readall() function to _compression.DecompressReader class
to take best advantage of this in the consume-all-output at once scenario.

Often a 5-20% speedup in common scenarios due to less data copying.

Contributed by Ma Lin.
Doc/whatsnew/3.10.rst
Include/internal/pycore_blocks_output_buffer.h [new file with mode: 0644]
Lib/_compression.py
Misc/NEWS.d/next/Library/2020-10-16-15-34-30.bpo-41486.Mu9Iit.rst [new file with mode: 0644]
Modules/_bz2module.c
Modules/_lzmamodule.c
Modules/zlibmodule.c