4 ms·
The conclusions are not much of a surprise here, but nice that someone took the time to verify it. This is comparable to the difference between row stores and
by mrich 10y ago
The conclusions are not much of a surprise here, but nice that someone took the time to verify it.
This is comparable to the difference between row stores and column stores in the database world. When only looking at one column a column store is faster due to the memory locality, but when fetching a whole row the row store will beat it for the same reason.
- btrask 10y agoWell said. This is the classic latency versus throughput tradeoff. Game developers are right to prefer SoA. Web developers are right to prefer AoS.
- deleted 10y ago[deleted]
- xixi77 10y agoExactly, and very good point about the duality with row/column stores! Sometimes people (usually coming from general-purpose software engineering background) have a preconception that SoA data structures are somehow cleaner and more object-oriented -- it's nice to have an analogy they could relate to more easily.