What is a "cache-friendly" code?

Date: Jul 25, 2023·Tags: #dev, #sysprog

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: