Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZSTD support #42

Open
pcercuei opened this issue May 12, 2021 · 0 comments
Open

ZSTD support #42

pcercuei opened this issue May 12, 2021 · 0 comments

Comments

@pcercuei
Copy link
Contributor

pcercuei commented May 12, 2021

Libiio 0.22+ will add the ZPRINT command, which behaves exactly like the PRINT command, but the payload is compressed with the ZSTD algorithm. If the remote iiod/tinyiiod does not understand it, it will then simply send the regular PRINT command.

This could be useful to support in libtinyiiod, since the XML string itself can be very big, and would occupy a much smaller space in memory when compressed. If the XML is static (not generated on-the-fly) it can be compressed at compilation time, so libtinyiiod itself does not need to implement ZSTD compression.

The upside is a much smaller memory footprint, and a much faster IIO context creation over slow buses like UART.

The drawback is that a ZSTD-enabled libtinyiiod would only work with a libiio v0.22+ that has ZSTD support enabled, but this could still be a very interesting feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant