Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Memory access patterns are everything. Memory delay is almost always the bottleneck anyway. I have the feeling that more and more this is becoming common knowledge, and techniques like "struct of arrays" are becoming more wide spread and talked about.


Is this perhaps why Build Engine used arrays, rather than arrays of struct? Organising things columnwise rather than rowwise, like an OLAP engine? https://fabiensanglard.net/duke3d/code_legacy.php


Yes. We learned that pattern in University, it is usually worth it unless in a high-level language.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: