Skip to content

Add fdeflate backend#548

Draft
Shnatsel wants to merge 3 commits into
rust-lang:mainfrom
Shnatsel:fdeflate-backend
Draft

Add fdeflate backend#548
Shnatsel wants to merge 3 commits into
rust-lang:mainfrom
Shnatsel:fdeflate-backend

Conversation

@Shnatsel

Copy link
Copy Markdown
Member

Add support for using fdeflate as a compression/decompression backend. It's already proven in the png crate used by Chromium (among other things).

The backend priority is above miniz_oxide but below zlib and zlib-rs.

This PR is basically #545 but with more effort put into it.

It still depends on two upstream PRs, so I'm marking this a draft:

Buffer sizes are a guess for now, and will need tuning. Larger sizes will likely improve performance by reducing the frequency of copying the lookback buffer, at the cost of higher memory use. These will need to be adjusted to be in line with the other backends for the total amount of memory consumed.

@fintelia FYI

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