image-rs/deflate-rs

Deal with incompressible data

oyvindln opened this issue · 0 comments

We want to avoid the compressed stream expanding more than needed when encountering incompressible (high entropy) data. Ideally, stored blocks should be output if compressing a block fails to reduce the size, but we want to do this without having to keep an excessively large input buffer