Replies: 1 comment
-
Higher levels take more memory - not only by bigger default window size. Tips: A) Use less instances. You seem to do that somewhat, but AFAICT you are indexing by original level, not the level used internally. Use the returned value from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It has been appeared that every
zstd.Encoder
instance occupies around 500MB of RAM when it is used for compressing data blocks with up to 2MiB sizes each by concurrent goroutines callingzstd.Encoder.EncodeAll()
- see this comment for details.IMHO, 500MB of RAM per every
zstd.Encoder
instance in this case sounds too much, and its memory usage can be reduced somehow.Beta Was this translation helpful? Give feedback.
All reactions