-
Notifications
You must be signed in to change notification settings - Fork 103
Description
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.20.1 darwin/amd64
What operating system and processor architecture are you using (go env)?
MacOS Monterey Intel i5 64 bit
What did you do?
I am trying to use NewReader() for decompressing huge zstd archives from Reddit in stream mode, but I am getting
failed to decompress: Frame requires too much memory for decoding
I was using https://github.com/klauspost/compress, which has zstd.WithWindowSize(2<<30) so it was working fine, but it uses twice the memory so I end up occupying 4gb for decompression instead of 2gb window size as mentioned here:
klauspost/compress#675 (reply in thread)
What did you expect to see?
I was hoping your lib can expose this window size option so I can see if memory usage decreases?
What did you see instead?
I am getting error failed to decompress: Frame requires too much memory for decoding