Hello all,
I use a nested structure in my program to store and organize variables:
struct.store1.var1 = var1;struct.store1.var2 = var2;struct.store1.var3 = var3;struct.store1.var4 = var4;struct.store2.var1 = var5;struct.store2.var2 = var6;
And this going on for around 100 variables (mostly doubles and matrices). My question is should I reorganize struct in an unested structure (like herunder) to improve performances?
struct.store1Var1 = var1;struct.store1Var2 = var2;struct.store1Var3 = var3;struct.store1Var4 = var4;struct.store2Var1 = var5;struct.store2Var2 = var6;
Best Answer