What is a "cache-friendly" code?

Date: 7/25/2023 · Tags: #dev, #system-programming

Such a good question:

What is the difference between "cache unfriendly code" and the "cache friendly" code?

As a developer, you might have heard of the term "cache". It's

There are only two hard things in Computer Science: cache invalidation and naming things.

-- Phil Karlton

Here are some good answers from Stack Overflow: