Remix.run Logo
jayd16 an hour ago

Even more so, it shows that SoA data structure means you can add fields to your 1M monsters with little impact.

notatyrannosaur 30 minutes ago | parent | next [-]

> you can add fields to your 1M monsters with little impact.

Great for this access pattern, but I wouldn't make a general statement like that. This is the same thing as row-oriented vs column-oriented databases, OLTP vs OLAP. SoA is weak if you are adding/removing monsters more often than accessing a single "hot" field.

celrod an hour ago | parent | prev [-]

Yes. I think one of the big advantages of SoA is that you only pay for the fields you're currently using. If you need a field somewhere, you can add it and only pay the cost of iterating it where you need it.