Skip to content

Is minizip thread safe? #399

Answered by Coeur
sp-stefano-lanza asked this question in Q&A
Discussion options

You must be logged in to vote

As far as I know, minizip 2 is designed with a streaming model that avoids any global state usage. So I guess that dealing with separate files in separate folders (to avoid writing conflicts) could work. But don't take my words for granted: try it yourself or wait for Nathan answer.

Note also that some file systems or hardwares aren't happy with writing two files at the same time, because it forces the hardware to frequently jump from one file to another: performances may be better when unzipping one file at a time.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nmoinvaz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #399 on December 09, 2020 18:34.