2 ms·
"There are two hard things in computer science: cache invalidation, naming things, and off-by-one errors" - Phil Karlton It's the same problem when solving tec
by peterburkimsher 5y ago
"There are two hard things in computer science: cache invalidation, naming things, and off-by-one errors" - Phil Karlton
It's the same problem when solving technical difficulties in life: I fill my pockets and backpack with adaptors, because the cost of a cache miss (going back to my room to get it) means it's no longer useful (for plugging in the laptop to the projector so these people can see the slides).
If only we could predict the future, then the cache could pre-load! And usually things do happen as planned, but sometimes free will gets involved and we branch another way, and need to fetch something else from memory, and that takes a while.