I'm using the fs.watchFile and i'd like to know more about the config
parameters, the persistent and interval.
I checked the source (node_stat_watcher.cc) but i still don't have any
idea.
As far as I saw, it takes 3--5 seconds to notice the changes (with the
default settings), can i make it faster?
how heavy is watching hundreds of files?
thx, best,
Viktor
Interval is relavent where inotify is not available - it determines
how long to poll for updates.
Persistent has to do with how the program should act when nothing but
watchFile is running. The default is to exit.
> As far as I saw, it takes 3--5 seconds to notice the changes (with the
> default settings), can i make it faster?
On linux it uses inotify - which is faster
> how heavy is watching hundreds of files?
Heavy. It's not meant for that.
thanks, best
Viktor
On Mar 24, 11:28 pm, Ryan Dahl <coldredle...@gmail.com> wrote:
> On Wed, Mar 24, 2010 at 4:10 AM, Viktor <kelemen.vik...@gmail.com> wrote:
> > Hi All,
>
> > I'm using the fs.watchFileand i'd like to know more about the config
> > parameters, the persistent and interval.
> > I checked the source (node_stat_watcher.cc) but i still don't have any
> > idea.
>
> Interval is relavent where inotify is not available - it determines
> how long to poll for updates.
>
> Persistent has to do with how the program should act when nothing butwatchFileis running. The default is to exit.