Reduce lv objects size by struct members reordering

Hi,

Is it possible to reduce the size (in bytes) of the lvgl widgets (objects) represented by structs by reordering it’s members?

See here: The Lost Art of Struct Packing.

It might be a fun experiment to do, and if the size is reduced dramatically by reordering the members of the structs it can be a nice improvement and the user is not ‘affected’.

Regards

We actually already do something like this. We use bitfields in the structures to pack as much information into individual bytes as possible. So I’m not sure how much difference struct reordering would make.

Still, it would be a good idea to review all of the structures at some point for efficiency.