- ujson
- pickle
- ustruct
- Protocol Buffers (a third party library)
Any comments or corrections are welcome, here or on GitHub.
That depends on what you're doing with the data. For example if you're sending it over a radio link data volume can be crucial. Some channels such as LoraWan have bandwidth restrictions, others are just slow.tve wrote: ↑Wed Feb 12, 2020 2:23 amThere's a huge performance difference between self-describing formats, such as json or messagepack and pre-defined formats, such as protobufs because optimized code can be generated for the latter while the former require some form of interpretation no matter what. However, when using a slow/dynamic language, such as python, it really doesn't make much of a difference...
I find that pretty hard to believe. At least in the case of MessagePack. And also because it's a super general non-qualified claim. I searched around a bit and also didn't find anything supporting it, sometimes even the opposite.
You mean implementations of MessagePack etc?pythoncoder wrote: ↑Wed Feb 12, 2020 8:36 amIf there are good MicroPython implementations of any of these other schemes I'd be interested to see them.
Fair enough. See https://github.com/alecthomas/go_serial ... benchmarks and for the results the tables are easiest to read in the raw doc: https://raw.githubusercontent.com/alect ... /README.md The time/iter column shows the time taken to serialize a struct with random data.