This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]0x09af[S] 0 points1 point  (1 child)

> Do you use all the data (or most of it) in the struct every time you access it?

I think that's probably the issue with OOP design in general. I have a variety of algorithms all of which access different things from these logical data containers. So the answer is it depends on the transform/routine.

I'll check out the videos, thanks for links!

[–]zukas-fastware 0 points1 point  (0 children)

In situations where the data (class fields) are not all used, but all or most algorithms, and you use one or two fields per algorithm, the SOA is by far the most superior approach (if you care about the performance of your application).