rust-lang / flate2-rs

DEFLATE, gzip, and zlib bindings for Rust
https://docs.rs/flate2
Apache License 2.0
869 stars 159 forks source link

Move GzHeader into GzState #344

Closed jongiddy closed 1 year ago

jongiddy commented 1 year ago

Moving the GzHeader struct into the GzState enum reduces the size of bufread::GzDecoder<&[u8]> from 296 to 208 bytes.

This implements part of the change from #323 with the aim to make that PR simpler.