-
-
Notifications
You must be signed in to change notification settings - Fork 308
Revert "Clean up insert_match() in deflate_medium" #1938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe changes update a comment in Changes
Sequence Diagram(s)sequenceDiagram
participant Compressor
participant HashTable
Compressor->>Compressor: Detect match (match_length, lookahead)
alt match_length < WANT_MIN_MATCH
Compressor->>Compressor: Increment strstart, decrement match_length
else match_length >= WANT_MIN_MATCH
alt match_length ≤ 16 * max_insert_length and lookahead ≥ WANT_MIN_MATCH
loop For each match_length
Compressor->>HashTable: Insert string
Compressor->>Compressor: Increment strstart, decrement match_length
end
else
Compressor->>Compressor: Advance strstart by match_length, reset match_length
alt strstart ≥ STD_MIN_MATCH - 2
Compressor->>HashTable: quick_insert_string at offset
end
end
end
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (3)📓 Common learningsdeflate.h (10)deflate_medium.c (10)🔇 Additional comments (3)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1938 +/- ##
===========================================
+ Coverage 81.87% 81.92% +0.05%
===========================================
Files 162 162
Lines 13915 13923 +8
Branches 3120 3122 +2
===========================================
+ Hits 11393 11407 +14
+ Misses 1561 1522 -39
- Partials 961 994 +33 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thank you for making this fix. Do you have an estimate when the next release will occur with this change? |
Due to the amount of high-impact changes in develop, we are currently in the process of making a 2.3.x release. That has no ETA currently. (If you want to help test that, that would of course be appreciated) I want to make a 2.2.5 release by backporting the fixes I think are most relevant for the 2.2-branch, and this will of course be included there. Due to the current heatwave and vacation time, I cannot promise a rapid release of that, but I hope to have one out within 2-4 weeks. Maybe less, but don't count on it. |
This release makes some changes to the medium algorithm, see zlib-ng/zlib-ng#1938
This release makes some changes to the medium algorithm, see zlib-ng/zlib-ng#1938
This release makes some changes to the medium algorithm, see zlib-ng/zlib-ng#1938
This release makes some changes to the medium algorithm, see zlib-ng/zlib-ng#1938
This release makes some changes to the medium algorithm, see zlib-ng/zlib-ng#1938
This release makes some changes to the medium algorithm, see zlib-ng/zlib-ng#1938
This release makes some changes to the medium algorithm, see zlib-ng/zlib-ng#1938
This release makes some changes to the medium algorithm, see zlib-ng/zlib-ng#1938
This release makes some changes to the medium algorithm, see zlib-ng/zlib-ng#1938
This release makes some changes to the medium algorithm, see zlib-ng/zlib-ng#1938
This release makes some changes to the medium algorithm, see zlib-ng/zlib-ng#1938
This release makes some changes to the medium algorithm, see zlib-ng/zlib-ng#1938
This reverts commits 56d3d98 and 322753f after reports of performance regressions, seemingly mostly affecting highly compressible data with a lot of very long matches (257+ bytes).
Fixes #1935
Summary by CodeRabbit
Bug Fixes
Documentation
max_insert_lengthparameter for different compression levels.