diff options
author | INADA Naoki <methane@users.noreply.github.com> | 2018-07-06 05:06:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-06 05:06:00 (GMT) |
commit | 8d130913cb9359c01de412178f9942419e921170 (patch) | |
tree | f144f1eead7e16809b69813e05b008fd7a8598c1 /Lib/re.py | |
parent | f12028809b0e37ee003d06e7fce8dc6a6f447a94 (diff) | |
download | cpython-8d130913cb9359c01de412178f9942419e921170.zip cpython-8d130913cb9359c01de412178f9942419e921170.tar.gz cpython-8d130913cb9359c01de412178f9942419e921170.tar.bz2 |
bpo-34043: Optimize tarfile uncompress performance (GH-8089)
tarfile._Stream has two buffer for compressed and uncompressed data.
Those buffers are not aligned so unnecessary bytes slicing happens
for every reading chunks.
This commit bypass compressed buffering.
In this benchmark [1], user time become 250ms from 300ms.
[1]: https://bugs.python.org/msg320763
Diffstat (limited to 'Lib/re.py')
0 files changed, 0 insertions, 0 deletions