airlift / aircompressor

A port of Snappy, LZO, LZ4, and Zstandard to Java
Apache License 2.0
549 stars 110 forks source link

Fix ZSTD output stream failure when buffer is flushed early #164

Closed dain closed 1 year ago

dain commented 1 year ago

In some cases, the ZSTD output stream is flushed before growing the buffer to the maximum size. This can cause an exception when sliding the output window, and can also hurt performance as the window is copied more often.