Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Added ZLib decompression support to DeflateStream #2906
The DeflateStream class currently uses ZLib for compression (if available) but doesn't use ZLib for decompression. This commit adds support to use either ZLib or the Managed implementation for decompression (inflation).
This commit is a work in progress on getting ZLib running as the default method of decompression on Windows and Unix systems that support it. The potential benefits are substantial; my initial perf benchmarks that measure the speed of the
To clarify, this means that my test did a ReadAsync 1000/50 times, and I ran the test n times. Across the n times, the average runtime for all iterations is given. I apologize for the convolution, but building my perf tests on top of xunit made things a bit messy :)
Regardless, a 3X DeflateStream.ReadAsync speedup is exciting!