Marc B.
Marc B.

Reputation: 13

High Speed compression for raw data in language C

I need to compress raw unknown data <= 4MB to smaller (the size is not important here). The most important part is the speed of the compression. I need to keep datas as data. I can't make a file or zip it.

Which algorithm of compression will you recommend me ?

For example : My raw data (4MB) are send by ethernet in approximately 58ms. I want to improve this sending. I use language C to program it. Unfortunately i use a CPU with a 600MHz of cadence.

I already try the LZ4 library. It compress the data in 65ms. Is there a better algorithm ? Of more simple, is it possible to improve my speed ?

Upvotes: 0

Views: 183

Answers (1)

Cyan
Cyan

Reputation: 13948

LZ4 library proposes an acceleration parameter which can be used to tune speed / compression trade off, and make compression as fast as you like.

Upvotes: 1

Related Questions