2 ms·
> It is for example quite common to have two types of data, one is frequently reused over very long periods, the other is reused over short periods after the fi
by kbenson 10y ago
> It is for example quite common to have two types of data, one is frequently reused over very long periods, the other is reused over short periods after the first use.
I can't help but see the parallels with garbage collection algorithms, which seem to actually be the same problem approached from a different angle. Which objects should be scanned for cleanup and how often for optimal use of time maps very closely to what items to keep or event from a cache.
- danbruc 10y agoOr when transmitting data packets over a network you want to favor real time data like phone or video calls over file downloads. And in case of a failed transmission you want to just forget about the few milliseconds of voice you just lost but you certainly want to retransmit a lost packet from the middle of a binary. It's all the same, identifying objects with different characteristics in order to handle them with tailored algorithms instead of simply using a generic but less optimal algorithm for all objects.