Skip to content

Reduce huffman decode table size#871

Merged
seanmonstar merged 1 commit into
hyperium:masterfrom
ariaandika:master
Dec 19, 2025
Merged

Reduce huffman decode table size#871
seanmonstar merged 1 commit into
hyperium:masterfrom
ariaandika:master

Conversation

@ariaandika

@ariaandika ariaandika commented Dec 17, 2025

Copy link
Copy Markdown
Contributor

The type of huffman decode table is [[(usize, u8, u8); 16]; 256], where the usize is an index to the next entry within that table. Because the length of the table is exactly 256, by storing the index as u8 it will make the table size significantly smaller.

Closes #870

@seanmonstar
seanmonstar merged commit 0fe6457 into hyperium:master Dec 19, 2025
6 checks passed
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.

Reduce the size of huffman decode table

2 participants