-
Notifications
You must be signed in to change notification settings - Fork 364
Closed
Description
It is not possible to limit how much memory Encoder may use, what causes OOM problems with long-living encoders in embedded systems. Additionally Reset function does not free all memory, it clears buffers using x.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 are WithLowerEncoderMem and WithWindowSize which should help a bit, but I am afraid that they will not be enough in all cases. Please add new option WithEncoderMaxMemory to address this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels