Skip to content

Conversation

fxrlv
Copy link

@fxrlv fxrlv commented Jun 17, 2025

there is no need to zero out input/output buffers since they are not affected by golang/go#19928
but zeroing may increase RSS for small frequent payloads

related to #61

@waldoweng
Copy link
Contributor

waldoweng commented Jul 11, 2025

Yes, I agree they are not affected by golang/go#19928. Only the first calloc in those to code segment is needed to fix #61 since there is a pointer inside C.ZSTD_inBuffer and C.ZSTD_outBuffer. I do the rest callocs just for defensive programming and consistency.

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.

2 participants