Skip to content
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

New feature: compressor can take streams larger than typemax(UInt32) bytes #62

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

felixhorger
Copy link
Contributor

@felixhorger felixhorger commented Jul 28, 2022

I ran into problems with large streams, which is because the ZStream structure only takes UInt32 for e.g. avail_in; and so does the zlib backend.
I made some small adjustments to work around that, tests are passed with this modification.
I haven't added a test for the compression of large streams, as it might cause an OOM.
The decompressor wasn't modified, but in all cases I tested no problem occurred, maybe someone with a better understanding of the matter can have a look?
Cheers, Felix.

@JonasIsensee
Copy link

It would be really cool, if this could be merged.
Is there anything that prevents this?

@mkitti
Copy link
Member

mkitti commented Jan 24, 2023

Yea, let's merge it!

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.

3 participants