commit | 8d130913cb9359c01de412178f9942419e921170 | [log] [tgz] |
---|---|---|
author | INADA Naoki <methane@users.noreply.github.com> | Fri Jul 06 14:06:00 2018 +0900 |
committer | GitHub <noreply@github.com> | Fri Jul 06 14:06:00 2018 +0900 |
tree | f144f1eead7e16809b69813e05b008fd7a8598c1 | |
parent | f12028809b0e37ee003d06e7fce8dc6a6f447a94 [diff] |
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