JuliaIO / CodecZlib.jl

zlib codecs for TranscodingStreams.jl.
Other
51 stars 24 forks source link

How to make copy-free decompression? #57

Closed Moelf closed 2 years ago

Moelf commented 3 years ago

With LZ4 one can pass a source pointer and a destination pointer to a Julia function to avoid copying result over: https://github.com/tamasgal/UnROOT.jl/pull/128/files#diff-525588e68b2421901be164965272940effa093de733a3fd36c4b9a4344b8c20cR154

how to do it with Zlib? We're aware that ZStream is stateful, so it's not exactly straightforward, but it may be worth providing such a function? Happy to make a PR

Moelf commented 2 years ago

https://github.com/jakobnissen/LibDeflate.jl/issues/1 use LibDeflate