3 ms·
Look up "data oriented design" GDC talks or "AoS and SoA" for more in depth information to your question. The very brief tldr is that if you want to go fast, yo
by kllrnohj 5y ago
Look up "data oriented design" GDC talks or "AoS and SoA" for more in depth information to your question. The very brief tldr is that if you want to go fast, you have to design for cache locality and memory access patterns.
In particular for Java there's regularly dependent pointer loads, which are dreadfully slow on modern CPUs and also waste a significant amount of L1/L2 cache.
- kaba0 5y agoWhile not the most ergonomic, one can definitely create SoAs in Java and those will be just as fast as they are in low level languages.