FAM do that: fam, the File Alteration Monitor, provides a daemon and an API which applications can use to be notified when specific files or directories are changed.
Gustavo --- Aaron Newsome <[EMAIL PROTECTED]> escreveu: > Well given this explanation, I think my best solution would be to do > nothing. As in, the current operation works as good as can be > expected. > I'm not sure how Freevo would know magically how a directory contents > have > been modified and would regen the cache. Is there a fast way to find > if a > bunch of directories have changed, that would allow it to overall > work > faster than the way it works currently? > > --Aaron > > > This is a tough issue to address in a single threaded app. For > example, QT > > (and thus KDE) has a separate thread that scans the dir and sends > events > > to the GUI thread. The GUI stays responsive and updates when > needed. In > > this case, as was suggested, caching is probably the best bet. > However, to > > keep responsiveness, the cache should not be checked against the > dir at > > runtime. When modifying the contents of a cached dir, you'll just > have to > > remove the cache so it can be regenerated. > > > > ~Rob > > > > -----Original Message----- > > From: Aaron Newsome [mailto:[EMAIL PROTECTED] > > Sent: Monday, May 12, 2003 12:57 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [Freevo-users] slow loading menu when opening large > > directory.. caching possible? > > > > > > I had the same problems opening a directory of about 1,000 mpg > files, same > > problem when opening a playlist of a few thousand files. Very slow > and it > > doesn't seem to do any useful caching of the info as subsequent > accesses > > to the same directory are the same speed. > > > > --Aaron > > > >> When I browse to my mp3 collection though the Freevo GUI, the menu > takes > >> quit a long time to load this large directory. Is there any way > to > >> cache > >> directory info for faster loading? > >> > >> Thanks, > >> Tony > >> > >> _________________________________________________________________ > >> Add photos to your messages with MSN 8. Get 2 months FREE*. > >> http://join.msn.com/?page=features/featuredemail > >> > >> > >> > >> ------------------------------------------------------- > >> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa > Clara > >> The only event dedicated to issues related to Linux enterprise > solutions > >> www.enterpriselinuxforum.com > >> > >> _______________________________________________ > >> Freevo-users mailing list > >> [EMAIL PROTECTED] > >> https://lists.sourceforge.net/lists/listinfo/freevo-users > >> > >> > >> > > > > > > > > ------------------------------------------------------- > > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa > Clara > > The only event dedicated to issues related to Linux enterprise > solutions > > www.enterpriselinuxforum.com > > > > _______________________________________________ > > Freevo-users mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/freevo-users > > > > > > ------------------------------------------------------- > > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa > Clara > > The only event dedicated to issues related to Linux enterprise > solutions > > www.enterpriselinuxforum.com > > > > _______________________________________________ > > Freevo-users mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/freevo-users > > > > > > > > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise > solutions > www.enterpriselinuxforum.com > > _______________________________________________ > Freevo-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/freevo-users _______________________________________________________________________ Yahoo! Mail O melhor e-mail gratuito da internet: 6MB de espa�o, antiv�rus, acesso POP3, filtro contra spam. http://br.mail.yahoo.com/ ------------------------------------------------------- Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com _______________________________________________ Freevo-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-users
