Jesús Cea Avión <j...@jcea.es> added the comment:

I think doesn't makes sense for two threads using at the same time the same 
compress/decompress object. But I could guess ony reason for the locking code 
is to avoid crashing the interpreter just having two threads racing each other 
on an inherently mutable object.

Dan, parallel compression simply split the input data and compress each 
fragment independly. The actual compression object is not shared, each block is 
compressed with its own self-contained compression context.

----------

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

Reply via email to