zstd: pooledZipWriter should return Writers to the same pool#426
zstd: pooledZipWriter should return Writers to the same pool#426klauspost merged 1 commit intoklauspost:masterfrom
Conversation
This code was previously Get'ing objects from one pool and later Put'ing them to a different pool, so they were never reused.
|
Also, |
|
@mostynb Nice! Thanks! I don't want to rely on finalizers. I want to fix it properly, ie have a streaming option that only uses the main goroutine. |
I agree that would be preferable. Is it worth commenting out pooledZipReader in the meantime, since it's unused? |
|
@mostynb It is fine to leave. Thanks for the contribution! I will include it in the release I will do shortly. |
This code was previously Get'ing objects from one pool and later Put'ing them to a different pool, so they were never reused.