4 ms·
Otherwise, I assume that avoiding this problem is a matter of putting the larger elements at the start of the struct, and the smaller elements at the end (with
by Roboprog 10y ago
Otherwise, I assume that avoiding this problem is a matter of putting the larger elements at the start of the struct, and the smaller elements at the end (with the exception that for a nested array, you consider the element size, not the total array)
8 byte entries, then 4 byte entries, 2 byte entries, chars/bytes, bits.