This PR changes the lzf compression support when dumping the RDB snapshot to avoid using a secondary buffer on the stack.
It also update the code (although it's kept disabled) that compresses data with LZF to use the new storage buffered channels.
The library in use requires way too much stack space (1MB) to compress 256 bytes of data, it's an absolute waste of memory. Once we will switch to a different library this functionality will be re-enabled.
This PR changes the lzf compression support when dumping the RDB snapshot to avoid using a secondary buffer on the stack.
It also update the code (although it's kept disabled) that compresses data with LZF to use the new storage buffered channels.
The library in use requires way too much stack space (1MB) to compress 256 bytes of data, it's an absolute waste of memory. Once we will switch to a different library this functionality will be re-enabled.