struct Type
{
int a,b,c,d,e,f,g;
int data[300];
};
Type data_a[500], data_b[500];
Would there be any difference in performance with the following?
for(int e=0; e<500; e++)
data_a[e] = data_b[e];
..or..
memcpy( data_a, data_b, sizeof(Type) * 500 );
How is data copied with default assignment operators? Does it optimize the same way memcpy does? Or perhaps better?