On Tue, 28.12.10 15:47, Colin Guthrie ([email protected]) wrote:

> > Doing this properly opens a couple of questions though: i.e. what
> > precisely should the eviction logic be? Just by time? Or maybe try to
> > limit the size of the cache? And which sounds to evict? LRU? or by size?
> 
> I think the intricate details of this don't, in all practicality, matter
> that much. It will, of course, be endlessly debated and people may
> ultimately disagree, but I think just writing a relatively simple policy
> for it will be enough (evict LRU until enough space for new sample seems
> simplest to me). If it proves to cause problems in some circles, then it
> can be tweaked accordingly - no need to set it in stone :)

Yupp, I guess simple LRU with overall size limit makes sense.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
_______________________________________________
libcanberra-discuss mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/libcanberra-discuss

Reply via email to