You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The answer is they are very different compression techniques. ZstdCompressor is a block compressor which means it compresses a block of data in memory to an output buffer in memory in one shot. The requires the full input and output buffers to fit into memory. ZstdOutputStream is a stream compressor, which chops the imput data into chunks and uses the block compressor to compress the chunk. This means only part of the data needs to fit into memory at a time, but doesn't compress quite as well (it also adds extra data to the outptu describing the framing and such). BTW, what I am describing works for basically every compression algorithm.
Description
Aircompressior Version
Code
ZstdCompressor.compress(Bytebuffer)
ZstdOutputStream
File to Compress
Computer
JDK
The text was updated successfully, but these errors were encountered: