Frommi / miniz_oxide

Rust replacement for miniz
MIT License
168 stars 48 forks source link

Avoid unnecessary copying by resizing instead of extending vectors #55

Closed fhanau closed 4 years ago

fhanau commented 4 years ago

This saves time needed for copying zeroes and makes decoding 15% faster in my tests. The impact on encoding is smaller but there is also a measurable speedup.

oyvindln commented 4 years ago

Looks good.