Skip to content

Any completely 100% zero allocation / no heap escape / no garbage generated compression for golang? #808

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

You must be logged in to vote

S2 blocks only allocate on the stack.

S2 streams with FlushOnWrite and "WriterConcurrency(1)" should also be fully allocation-less. Of course you must reuse the Writers you allocate.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kolinfluence
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
2 participants
Converted from issue

This discussion was converted from issue #807 on April 23, 2023 14:56.