|
|
|
|
|
by wskinner
2871 days ago
|
|
I store physical items in my home in an LRU cache. Items I use all the the time are close to the places where I use them. Less frequently used items are stored further from the place they are used, for example in a closet or the garage. This clashes badly with my roommate, also a programmer, who strongly prefers to store items by category. He will put all the kitchen gadgets on a shelf by the kitchen even if those gadgets go months without being used. The advantage of his method is that you always know where something is, because it’s in the right place. The advantage of my method is that most of the time I get things done faster, though sometimes I end up spending some time looking for a thing I use only infrequently. It turns out he also has much more stuff than I do. Since caches are more efficient with a smaller working set, it makes sense that we would each prefer our own strategy. Who knows which direction the causation goes. |
|