Original Post
Hi,
I''ve been reading up on memory alignment as a further optimisation and was wondering how I could test the performance increase in changing this struct:
struct Test
{
char c ;
__int64 d ;
int b ;
char a ;
};
to this:
struct Test
{
__int64 d ;
int b ;
char a ;
char c;
char unused[2];
};
I did something with a for loop and a high-res timer but nothing particularly conclusive came of it.
Also I was wondering if aligning to 4bytes is still appropriate?
Cheers