Skip to content
Snippets Groups Projects
user avatar
Petteri Aimonen authored
Avoids unnecessary initialization & unnecessary scan of
the pb_field_t array.

Runtime on Cortex-M3 -5%, code size +2%.

Could need some more testing with random field orders.
Have to write a tool to randomize fields in a message.
7a9c29f2
Nanopb is a small code-size Protocol Buffers implementation.

Homepage: http://kapsi.fi/~jpa/nanopb/

To compile the library, you'll need these libraries:
protobuf-compiler python-protobuf libprotobuf-dev

The only runtime dependencies are memset() and memcpy().

To run the tests, run make under the tests folder.
If it completes without error, everything is fine.