SharpZipLib icon indicating copy to clipboard operation
SharpZipLib copied to clipboard

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

Open QuinnDamerell opened this issue 1 year ago • 0 comments

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.

QuinnDamerell avatar Apr 02 '24 17:04 QuinnDamerell