Skip to content

Is the zip writer concurrent? #945

Answered by klauspost
apprehensions asked this question in Q&A
Discussion options

You must be logged in to vote

@apprehensions No. There is no concurrent zip writer that I know of.

The only thing I see making sense being concurrent would be the deflate part, since each file needs to be written serially. If you know you are only writing small files I guess you can do the deflate in separate goroutines and use a fan-in to add the compressed data with CreateRaw. But it is not something I have explored too deeply.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@apprehensions
Comment options

@klauspost
Comment options

@apprehensions
Comment options

@klauspost
Comment options

Answer selected by apprehensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants