Make your programs run faster by better using the data cache (2020)

Johnny’s Software Lab LLC specializes in improving software performance, offering low-level optimizations as a solution to squeeze more performance out of your existing algorithm. By better leveraging memory cache subsystems, Johnny’s Software Lab advises developers to use vectors or arrays when accessing data linearly and organizing variables to be accessed together in memory. Other tips include optimizing access to an array of class or struct, being mindful of how matrices are stored in memory, and avoiding padding in classes and structs. The lab recommends using smaller types and avoiding heap allocation when possible, and using data while still in cache to optimize performance.

https://johnnysswlab.com/make-your-programs-run-faster-by-better-using-the-data-cache/

To top