Base struct as pointer or sub structs as pointers

This is similar in nature to this question where I posted a bunch of information that you might find helpful:

And in that thread I told the OP to benchmark it:

Which is exactly what I think you should do. Write some benchmarks and test memory usage. Also if you really want to get into memory optimization of your structs, you could take a look at padding/alignment. There’s a tool you can use to analyze your project:

1 Like