paolobarbolini / bzip2-rs

Pure Rust bzip2 decoder
Apache License 2.0
44 stars 6 forks source link

refactor: move block state from Block to Decoder #2

Open paolobarbolini opened 3 years ago

paolobarbolini commented 3 years ago

This is one of those changes which should have been easy. State shouldn't live inside Block but inside Decoder. However this change seems to create a decompression speed regression up to 10%. Let's leave this as a PR and see if we can come up with a solution