Re: [Banshee-List] Some preliminary work in trunk - opinions needed



On Jan 2, 2008 8:59 AM, Gabriel Burt <gabriel burt gmail com> wrote:
> The cache, as it is now, is not intended to live beyond a single
> Banshee session.  It is actually cleared on start up.   Each cacheable
> model is given a unique ModelID which could be different each run, but
> that's ok.  It will be simple enough to change it if we need to
> persist the cache.

I've been working on porting smart playlists to the trunk codebase,
and started noticing startup time getting longer because the cache for
each source is regenerated on startup.

I've got a patch nearly ready that creates a new table CoreCacheModels
with CacheId, ModelId columns where ModelId is a unique string across
various source models (library, playlists, etc), and the CacheId is
the foreign key used in the CoreCache table, just like before.  This
means we can start up much faster, have the exact sort/filter you had
when you shut down pretty much instantly, etc.

Gabriel


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]