Issue 34043: Optimize tarfile uncompression performance (original) (raw)

Issue34043

Created on 2018-07-04 12:10 by methane, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 8089 closed methane,2018-07-04 12:20
Messages (2)
msg321039 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2018-07-04 12:21
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
msg321148 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2018-07-06 05:06
New changeset 8d130913cb9359c01de412178f9942419e921170 by INADA Naoki in branch 'master': bpo-34043: Optimize tarfile uncompress performance (GH-8089) https://github.com/python/cpython/commit/8d130913cb9359c01de412178f9942419e921170
History
Date User Action Args
2022-04-11 14:59:02 admin set github: 78224
2018-07-06 07:31:24 methane set status: open -> closedresolution: fixedstage: patch review -> resolved
2018-07-06 05:06:04 methane set messages: +
2018-07-04 13:02:30 serhiy.storchaka set nosy: + lars.gustaebel, serhiy.storchaka
2018-07-04 12:21:11 methane set messages: +
2018-07-04 12:20:05 methane set keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest7690>
2018-07-04 12:10:32 methane create