inflate icon indicating copy to clipboard operation
inflate copied to clipboard

A pure Rust implementation of DEFLATE decompression

Results 6 inflate issues
Sort by recently updated
recently updated
newest added

Hi, I'm coming from a discussion in https://github.com/image-rs/image-png/issues/114. My issue is regarding the very slow reading of png images in wasm. @HeroicKatora identified that the issue might come from inflate...

These files are very small so they might not be entirely representative, but the benchmarks run in reasonable time, so that's a start.

test program: https://play.rust-lang.org/?gist=f944dbb26d6cd8afb4e866359d9b9e2f&version=stable&mode=debug&edition=2015 https://gist.github.com/f944dbb26d6cd8afb4e866359d9b9e2f

``` $ valgrind target/release/deps/test-7db46c3c67811ea2 --test-threads 1 ==30187== Memcheck, a memory error detector ==30187== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==30187== Using Valgrind-3.13.0 and LibVEX; rerun...

Rust is adding support to compile and optimize at link time in parallel. Code units seems to be functions? or at least it can't parallelize in finer grain than functions....

Currently `InflateStream::update` nearly always returns `Ok` for truncated streams, and this flows through to the higher level APIs. There should be some way to determine that more data is still...