Skip to content

Commit

Permalink
Revert "A test to see how much time can be saved by not zeroing zlib …
Browse files Browse the repository at this point in the history
…buffers"

This reverts commit fd41a51.

Wait till Frommi/miniz_oxide#92 got merged.
  • Loading branch information
Byron committed Aug 11, 2020
1 parent fd41a51 commit 3d51d59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,3 @@ members = [
"git-tui",
"demos"
]

[patch.crates-io]
miniz_oxide = { path = "../miniz_oxide/miniz_oxide" }
2 changes: 1 addition & 1 deletion git-odb/src/zlib/stream/inflate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Default for Inflate {

impl Inflate {
pub fn reset(&mut self) {
self.state.reset_without_zeroing_output_buffer(DataFormat::Zlib);
self.state.reset(DataFormat::Zlib);
self.total_in = 0;
self.total_out = 0;
}
Expand Down

0 comments on commit 3d51d59

Please sign in to comment.