Perform field initialization to defaults only when the field is skipped.
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.
Please register or sign in to comment