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

Adding logic to the inflator and deflator streams to use pooled buffers if possible and clear memory on Dispose() #860

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

QuinnDamerell
Copy link

This change allows the inflator and deflator streams to use pooled memory buffers, so they don't need to allocate and free buffers every time they are created. The change also frees the buffers on Dispose, so the GC can clean up memory more quickly.

I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the SharpZipLib open source product (the "Contribution"). My Contribution is licensed under the MIT License.

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