From 084c21bcaa0a788f330b15af5abc1bd33bce13a6 Mon Sep 17 00:00:00 2001 From: oyvindln Date: Tue, 18 Jun 2024 02:52:26 +0200 Subject: [PATCH] bump version and update changelog --- CHANGELOG.md | 13 +++++++++++++ cliff.toml | 1 + miniz_oxide/Cargo.toml | 2 +- miniz_oxide/src/deflate/core.rs | 3 +++ 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86598d5..a2932ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ All notable changes to this project will be documented in this file. +--- +## [0.7.4](https://github.com/Frommi/miniz_oxide/compare/0.7.3..0.7.4) - 2024-06-18 + +### Bug Fixes + +- **(miniz_oxide)** simplify init_tree a little and use a smaller lookup table for bit reversal - ([2ba520a](https://github.com/Frommi/miniz_oxide/commit/2ba520a458704e9fd12817fd2e945d869502c59c)) - oyvindln +- **(miniz_oxide)** evade bounds checks in record_match to improve compression performance a little - ([d1de8db](https://github.com/Frommi/miniz_oxide/commit/d1de8dba2e2bbea6452c9a1d78b221a0f41dadd2)) - oyvindln +- **(deflate)** evade a bounds check in deflate for a small perf improvement - ([b4baed3](https://github.com/Frommi/miniz_oxide/commit/b4baed337a70c317c5d6a2fa245bda21f461fc6b)) - oyvindln + +### Other + +- disable c miniz part in miniz_oxide_c_api of bench - ([2f0a9a3](https://github.com/Frommi/miniz_oxide/commit/2f0a9a3b4f2bc49c44efa3fa9e3afada893ab775)) - oyvindln + --- ## [0.7.3](https://github.com/Frommi/miniz_oxide/compare/0.7.2..0.7.3) - 2024-05-17 diff --git a/cliff.toml b/cliff.toml index cfc0c5b..37da284 100644 --- a/cliff.toml +++ b/cliff.toml @@ -85,3 +85,4 @@ ignore_tags = "" date_order = false # sort the commits inside sections by oldest/newest order sort_commits = "oldest" +features_always_bump_minor = false diff --git a/miniz_oxide/Cargo.toml b/miniz_oxide/Cargo.toml index 07b46e5..8a42c1d 100644 --- a/miniz_oxide/Cargo.toml +++ b/miniz_oxide/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "miniz_oxide" authors = ["Frommi ", "oyvindln "] -version = "0.7.3" +version = "0.7.4" license = "MIT OR Zlib OR Apache-2.0" readme = "Readme.md" keywords = ["zlib", "miniz", "deflate", "encoding"] diff --git a/miniz_oxide/src/deflate/core.rs b/miniz_oxide/src/deflate/core.rs index 4bc2bff..111e596 100644 --- a/miniz_oxide/src/deflate/core.rs +++ b/miniz_oxide/src/deflate/core.rs @@ -678,9 +678,12 @@ struct OutputBufferOxide<'a> { impl<'a> OutputBufferOxide<'a> { fn put_bits(&mut self, bits: u32, len: u32) { + // TODO: Removing this assertion worsens performance + // Need to figure out why assert!(bits <= ((1u32 << len) - 1u32)); self.bit_buffer |= bits << self.bits_in; self.bits_in += len; + while self.bits_in >= 8 { self.inner[self.inner_pos] = self.bit_buffer as u8; self.inner_pos += 1;