]> granicus.if.org Git - python/commit
bpo-34010: Fix tarfile read performance regression (GH-8020)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 4 Jul 2018 08:32:41 +0000 (01:32 -0700)
committerGitHub <noreply@github.com>
Wed, 4 Jul 2018 08:32:41 +0000 (01:32 -0700)
commitc1b75b5fb92fda0ac5b931d7b18c1418557cb7c4
tree2a063a9c858d9baeb2ac0f97700efac1f50b740a
parent2cbd1bb1f342760ce7c1b78d1ef5697c32f1e299
bpo-34010: Fix tarfile read performance regression (GH-8020)

During buffered read, use a list followed by join instead of extending a bytes object.
This is how it was done before but changed in commit b506dc32c1a.
(cherry picked from commit 12a08c47601cadea8e7d3808502cdbcca87b2ce2)

Co-authored-by: hajoscher <hajoscher@gmail.com>
Lib/tarfile.py
Misc/NEWS.d/next/Library/2018-07-04-07-36-53.bpo-34010.VNDkde.rst [new file with mode: 0644]