Feature request: add WithEncoderMaxMemory option #1093
sirzooro
started this conversation in
Ideas/Features
Replies: 2 comments
-
|
Not likely to be added. You will need to manage this... Read through the discussions.. Here are some recent discussions you can start with... |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thanks, I will check them. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
It is not possible to limit how much memory Encoder may use, what causes OOM problems with long-living encoders in embedded systems. Additionally
Resetfunction does not free all memory, it clears buffers usingx.y = x.y[:0], so allocated memory is not freed. This means that after compressing some extra long message memory usage grows and stays on higher level. I have checked existing encoder options and did not find one to limit memory usage. There areWithLowerEncoderMemandWithWindowSizewhich should help a bit, but I am afraid that they will not be enough in all cases. Please add new optionWithEncoderMaxMemoryto address this issue.Beta Was this translation helpful? Give feedback.
All reactions