Library that can gzip in a smaller memory environment (e.g. 10KB RAM)

Asked 2 years ago, Updated 2 years ago, 61 views


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

gzip

2022-09-30 21:37

1 Answers

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).


2022-09-30 21:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.