3 ms·
Padding in the post refers to memory alignment. If we had an "array of structs" instead of "struct of arrays" it would be: string(8) + long(8) + int(4) + paddi
by vrnvu 1y ago
Padding in the post refers to memory alignment.
If we had an "array of structs" instead of "struct of arrays" it would be: string(8) + long(8) + int(4) + padding(4) = 24 bytes