<story><title>Make your programs run faster by better using the data cache (2020)</title><url>https://johnnysswlab.com/make-your-programs-run-faster-by-better-using-the-data-cache/</url></story><parent_chain></parent_chain><comment><author>jacknews</author><text>It seems to me there is scope for a language feature of &amp;#x27;managed memory&amp;#x27; where you declare the data you need and how it is to be accessed (or access can be determined from the program), and let the language&amp;#x2F;compiler figure out how to organize it for safety and performance.&lt;p&gt;For example if you declare an array of structures, the compiler&amp;#x2F;language should be able to turn that into a structure of arrays under the hood if that is the way the data is accessed.&lt;p&gt;Not sure how that could work in practice, I guess you&amp;#x27;d start with hints, but it seems like something to research. Indeed I&amp;#x27;m sure there&amp;#x27;s already some research in this area.</text></comment>
<story><title>Make your programs run faster by better using the data cache (2020)</title><url>https://johnnysswlab.com/make-your-programs-run-faster-by-better-using-the-data-cache/</url></story><parent_chain></parent_chain><comment><author>charcircuit</author><text>This is a list of microoptimizations. Designing the architecture of your whole program to be cache friendly was not addressed here, but is arguably more important.</text></comment>