Comment on I also have one

<- View Parent
notabot@piefed.social ⁨1⁩ ⁨week⁩ ago

Not if items are covered by other items. You’ve got a layer of fast L1 cache that is O(1), but exceed the limit of that layer by placing an item of clothing on top of it, and some elements are effectively “pushed down” to a higher latency tier, which is going to be closer to O(log N) as you have to move some percentage of the items out of the way to get to the target item. Cache eviction (doing the laundry) will reset this.

As always careful optimisation of the cache size, in relation to the expected distribution of items to be accessed, is key to maximising performance.

source
Sort:hotnewtop