deprecate or improve zipstream

[email protected] Wed, 23 Sep 2009 17:33:56 -0000
Newsgroups gmane.comp.python.twisted.bugs
Message-ID <[email protected]>
New submission from kmike <None>:

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.

----------
Type     : enhancement
Component: core
Keywords : 
Priority : normal
Nosy     : kmike
----------
http://twistedmatrix.com/trac/ticket/4035