With SRAW repetitive patterns can be encoded extremely efficiently for example 1000 identical values can be represented in just a few bytes. CPU overhead is minimal making it suitable for microcontrollers and memory constrained devices. Output sizes are predictable which is critical for embedded environments. The approach can be used alongside traditional compression rather than as a replacement.
Implementation relies on smart bit packing and pattern recognition tailored to specific data types. In practice this has produced significant improvements with sensor streams telemetry and binary protocols where traditional compression either underperforms or requires excessive resources.
The underlying principle is straightforward but often overlooked optimizing data at the source can be more effective than compressing it afterwards. Removing redundancy early typically yields better efficiency than applying compression only after formatting.
I am sharing this to engage with engineers working in embedded systems IoT or other fields where data efficiency is critical. Feedback alternative approaches or similar experiences would be highly appreciated.
GitHub: https://github.com/DenisDolya/sraw
Documentation: https://denisdolya.github.io/sraw/