hgwatchman: inotify that works

Siddharth Agarwal sid0 at fb.com
Tue Sep 3 11:58:53 CDT 2013


On 09/02/2013 11:57 PM, Martin Geisler wrote:
> Even with a "smal" repo like that, it's good to see the overhead of
> querying the daemon is smaller than the speedup given.

In the quiescent state, the overhead is usually around a hundredth of a 
second. It takes much longer simply to parse the dirstate -- over a 
tenth of a second for us.

> Cool, that's basically the same idea, but without having a timestamp
> file lying around. Do you know if this was discussed elsewhere than on
> our mailinglist:
>
>    http://mercurial.markmail.org/message/kusxqw7rbmlcxexv

mpm proposed the idea in an internal IRC channel.


> Have you looked into porting watchman to the Windows FS monitoring API?

I don't think we have any plans to do that, though we'll likely welcome 
community patches as long as they don't distort the rest of the codebase 
too much. I do think porting watchman to Windows will be pretty 
difficult, though. We've probably baked too many Unix assumptions in.


More information about the Mercurial-devel mailing list