You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
data-ux commentedon Oct 18, 2021
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.
gh-89668: Optimize ZipFile file header processing algorithm to avoid …