New submission from Jan Wolski <j...@wolski.fi>:

Currently in the ZipFile class implementation, when processing the zip file 
headers "extra" field, a .read() call is used without using the returned value 
in any way. This call could be replaced with a .seek() to avoid actually doing 
the IO.

The change would improve performance in use cases where the fileobject given to 
ZipFile is backed by high latency IO, eg. HTTP range requests.

----------
components: Library (Lib)
messages: 404155
nosy: data-ux
priority: normal
pull_requests: 27292
severity: normal
status: open
title: Remove unneeded ZipFile IO
type: performance

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45505>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to