Skip to content

compressing and decompressing small messages #888

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

You must be logged in to vote

@teikjun 3. Is designed for your use-case. A single instance will allow concurrent compression/decompression operations while not creating extra allocations.

If you then re-use destination buffers for en/de-codes you generate very little garbage. Your API doesn't allow for that, but it will make a big difference if you do.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by teikjun
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