]> 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:43:42 +0000 (01:43 -0700)
committerGitHub <noreply@github.com>
Wed, 4 Jul 2018 08:43:42 +0000 (01:43 -0700)
commitd7a0ad7dd7bd7dfbdbf6be2c89fde5a71813628a
tree6a7e1a7251cfe7b9e536fdf19891f8d0174d1752
parentde6a2dec9c2b1280d70a29396d4e141bd1614655
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]