[New-bugs-announce] [issue44173] Stored (uncompressed) ZipExtFile in zipfile can be seekable at lower cost

JuniorJPDJ report at bugs.python.org
Tue May 18 22:28:39 EDT 2021


New submission from JuniorJPDJ <bugs.python.org at juniorjpdj.pl>:

At the moment stored ZipExtFile is being read to the place of seek like all other compressed variants.
It's not needed as it's possible to freely seek uncompressed file inside zip without this penalty.

Lots of apps depend on ZipExtFile seeking ability and it would lower performance and IO penalty significantly.

I've POC patch created.
It disables CRC checking after first seek as it's impossible to check CRC if we are not reading whole file.

----------
components: Library (Lib)
messages: 393918
nosy: juniorjpdj
priority: normal
severity: normal
status: open
title: Stored (uncompressed) ZipExtFile in zipfile can be seekable at lower cost
type: enhancement
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44173>
_______________________________________


More information about the New-bugs-announce mailing list