Skip to content
Discussion options

You must be logged in to vote

miniz_oxide and zlib do not use any threads internally or access any os data so I don't see how any race conditions would be possible and they should give the same output given the same input. I haven't really looked much into zlib-rs code but I would assume the same is the case there, relatively sure there aren't any thread calls there either.

The os field in the gzip header is provided by the caller, it's not interpreted based on system currently.

Note that none of the backends give the exact same output as each other when compressing as the implementations differ slightly so you have to fully control what backend is used if you want to have consistent output. zlib-ng, zlib-rs (and clou…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@arcanis
Comment options

@fintelia
Comment options

Comment options

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

This discussion was converted from issue #500 on September 09, 2025 15:07.