Memory access patterns in high-level languages

Like many developers that work in high-level languages, I think don’t spend a lot of time thinking about memory access patterns. This is probably a good thing… for the most part, worrying about this is premature optimization. But there are times when it matters, and the compiler won’t magically “optimize” it away for you, even if you have optimizations turned on:



I tried this out after seeing this discussion thread on Quora this morning.

Leave a Reply

Your email address will not be published. Required fields are marked *