use python 2.6's streaming zipfile support instead of our own zipstream module
|Reported by:||kmike||Owned by:||lvh|
(diff, github, buildbot, log)
As I can see the goal of zipstream is to provide support for an incremental approach to unzipping files.
But standard zipfile has this support since python 2.6. ZipFile?.open() method returns file-like object which supports 'read' method with buffer size in parameters.
Implementation in zipfile is better than in zipstream. At least it works a lot faster because it don't have 'self.buffer = self.buffer[n:]' code which kills performance on big (even tens of Kb's) buffer sizes like zipstream version does.
I think is better to deprecate zipstream and copy implementation from new zipfile. Or make zipstream a backported zipfile wrapper.
Change History (17)
comment:2 Changed 5 years ago by glyph
- Keywords easy added
- Owner changed from glyph to kmike
- Summary changed from deprecate or improve zipstream to use python 2.6's streaming zipfile support instead of our own zipstream module
comment:4 Changed 4 years ago by aruse
- Owner changed from kmike to aruse
- Status changed from new to assigned
Changed 4 years ago by aruse
comment:5 Changed 4 years ago by aruse
- Keywords review added
- Owner aruse deleted
- Status changed from assigned to new