|
|
|
|
|
by yellow_lead
170 days ago
|
|
> This may have a nontrivial memory cost, especially at high compression levels. (Don't set the compression window any larger than it needs to be!) It sounds like these contexts should be cleared when they reach a certain memory limit, or maybe reset periodically, i.e every N messages. Is there another way to manage the memory cost? |
|
Many compression standards include memory limits, to guarantee compatibility, and the older the standard the lower that limit is likely to be. If the standards didn't dictate this stuff, DVD sellers could release a DVD that needed a 4MB decompression window, and it'd fail to play on players that only had 2MB of memory - setting a standard and following it avoids this happening.