Original Post
From a performance standpoint, which of the following would be preffered?
1. Single array of structs/classes
typedef struct {
unsigned char a;
unsigned char b;
unsigned char c;
unsigned char d;
} MyStruct;
MyStruct array[256];
2. Multiple arrays
unsigned char a[256]; unsigned char b[256]; unsigned char c[256]; unsigned char d[256];It seems like a single array would be preferred from both a performance standpoint, and from a good coding practice standpoint as well (easier to read/understand/organize/etc/).