On Tue, Dec 02, 2003 at 06:34:33PM +0100, Dirk Meyer wrote:
> There is a problem. To have that information, you need to parse the
> content of the directory in __init__ to have that information. This
> will slow down Freevo because when you enter a directory, you need to
> parse all subdirs. This is very slow.

That why I'd cache it.

> That reminds me of a posting of yours I forgot to answer: use sqlite
> inside mmpython. If you have the time, it would be great if you could
> extend the mmpython cache. Write a sqlcache.py with the old cache.py
> as fallback if sqlite is not there. With that, mmpython could store
> some metainformation to a directory:

I could do that (though not till after exams) but you should note that
it won't be significantly faster (if at all, it'll be slower for
single items. It'll only be useful when comparing or doing
relationship related things)

> Back to the topic: if the mmpython cache adds the info "album" to the
> DirItem, you can access it as easy as if you write a fxd file. Without
> any change inside Freevo.

That might be easiest. To actually grab the information and add up the
times, figure out if it's a unique artist/album or a bunch of
different ones is pretty simple.

Aubin


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to