Skip to content

Try fixed Huffman codes and uncompressed blocks - #73

Merged
fintelia merged 3 commits into
image-rs:mainfrom
fintelia:detect-incompressible2
May 31, 2026
Merged

fintelia merged 3 commits into
image-rs:mainfrom
fintelia:detect-incompressible2

Conversation

@fintelia

Copy link
Copy Markdown
Contributor

This adds logic in the compressor to check any block less than 1KiB to see whether it would be better with a stored block ("type 0") or a fixed code block ("type 1"). The benefit of those other block kinds is that they don't have the fixed overhead of writing a block header like dynamic Huffman code blocks do, but the data ends up less compressed / not compressed at all.

@fintelia
fintelia force-pushed the detect-incompressible2 branch from 8a1e1cc to 41cb3af Compare April 18, 2026 18:34
@Shnatsel Shnatsel mentioned this pull request May 19, 2026
1 of 2 tasks
@fintelia
fintelia merged commit a713d02 into image-rs:main May 31, 2026
10 checks passed
@fintelia
fintelia deleted the detect-incompressible2 branch May 31, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant