QFileSystemWatcher vs KDirWatch

Andreas Pakulat apaku at gmx.de
Sat Jun 2 21:58:53 UTC 2007


On 02.06.07 23:23:23, Andras Mantia wrote:
> On Saturday 02 June 2007, Andreas Pakulat wrote:
> > Right, but distros use fam always and I doubt we can make them change
> > my mind. They didn't change their mind until now.
> 
> You can always shut down the fam deamon.

Sure, but that only works for fam, not for gamin.

> > It just doesn't use fam/gamin. It uses inotify if available, else it
> > polls.
> 
> Which probably results is a very bad performance on NFS mounted file 
> systems.

I think not only on NFS.

> > So even if the above is not all that serious there are two really
> > serious problems:
> >
> > a) No Maintainer and seemingly few people that know the code
> > b) Not platform independent, that is it only works on *nix (maybe
> > MacOS) without polling.
> 
> The first can be true, but for the second, does the qt class use other 
> method instead of polling on Win/Mac?

I didn't check Mac, but on Win it uses Win32 API to get notified. And
something that also came up either in the thread I mentioned or sometime
else on kde-devel: QFSWatcher actually works on OpenBSD while
KDirWatcher doesn't work there (except by using polling), because QFSW
uses kqueue on that platform.

Looking at the source dir I can't really see whats used on mac, unless
its also inotify or kqueue.

Andreas

-- 
An avocado-tone refrigerator would look good on your resume.




More information about the KDevelop-devel mailing list