Library with gzip compression in a small memory environment (e.g. RAM 10KB)
I would like to know what kind of things are available.
Objective: To reduce the size of data when transmitting data from the device to the server.
(Send data size is about 20kB before compression)
CPU:ARM Cortex-M4
RAM size available for this process: about 15KB
Others: Unzip is OK without implementation
According to zlib-Technical Details-Memory Footprint,
The memory requirements for compression depend on two parameters, windowBits and memLevel:
deflate memory usage(bytes)=(1<<(windowBits+2)+(1<<(memLevel+9)))
Therefore, based on this, you should specify windowBits
(minimum value 8) and memLevel
(minimum value 1).
© 2024 OneMinuteCode. All rights reserved.