[issue16569] Preventing errors of simultaneous access in zipfile

Stepan Kasal report at bugs.python.org
Mon Dec 3 17:51:35 CET 2012


Stepan Kasal added the comment:

> but I'm afraid it's impossible to do without performance regression due to seek before every read.

I agree that this is key question.

I would hope that the performance hit wouldn't be so bad, unless there are actually two decompressions running concurrently.
So we can have an implementation that is generally correct, though some use scenarios result in slow execution.

OTOH, if the seek() call were a problem even if the new position is the same as the old one, they can be optimized out by a simple wrapper around fp.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16569>
_______________________________________


More information about the Python-bugs-list mailing list