2 ms·
FYI if anyone is looking into data formats for high performance stuff I recommend looking into CBOR: https://en.wikipedia.org/wiki/CBOR https://en.wikipedia.or
by DanielHB 2y ago
FYI if anyone is looking into data formats for high performance stuff I recommend looking into CBOR:
https://en.wikipedia.org/wiki/CBOR https://en.wikipedia.org/wiki/CBOR
It is very popular in embedded systems and IoT. It is basically binary JSON, but supports numbers as key, variable-sized ints/floats, utf-8 strings. CBOR binary blobs can be converted to JSON keeping similar semantics (number keys will be converted to strings) and parsed with `jq` for human-readability/debugging.
It can also be read in "pull parsing" mode so you don't need to keep the whole message in memory. This is the opposite of "DOM parsing" although I don't know if these terms are applicable in non XML contexts. When you only have 256KB of RAM this is quite important.