A
aiooua
hello,
please consider the following code:
---
typedef lots int; //lots of data.
typedef struct one_{
lots data;
}info;
int main(){
info i1,i2;
i1 = i2; //option 1
memcpy(i1,i2,sizeof(info)); //option2
}
---
from a performance point of view, is there anything that'd make me
chose one of the options over the other?
i'm assuming option 1 would perform better. is that assumption
correct?
thanks,
please consider the following code:
---
typedef lots int; //lots of data.
typedef struct one_{
lots data;
}info;
int main(){
info i1,i2;
i1 = i2; //option 1
memcpy(i1,i2,sizeof(info)); //option2
}
---
from a performance point of view, is there anything that'd make me
chose one of the options over the other?
i'm assuming option 1 would perform better. is that assumption
correct?
thanks,