[GSoC] inotify prototype for MacOS

Brendan Cully brendan at kublai.com
Mon Aug 17 19:00:40 CDT 2009


On Monday, 17 August 2009 at 08:29, Nicolas Dumazet wrote:
> Hello -devel!
> 
> I now have in my MQ [1] a prototype for inotify extension support
> under MacOS. The code still needs some work, cleanups, and polishing,
> but since yesterday, the mercurial inotify tests are passing under Mac
> OS.
> 
> If you run Mac OS > 10.5, please spend a few minutes to play around
> with inotify under MacOS: tell me if it works, and it is any good,
> broken, or anything :)

Very cool. I've just tried it out, and it seems to basically
work. Some operations appear to be unaccelerated -- is this expected?

Here are some times for mozilla-central:

% time hg st
hg st  0.09s user 0.04s system 63% cpu 0.200 total
(fast)

% echo foo >> README.txt
% time hg st
M README.txt
hg st  0.08s user 0.04s system 78% cpu 0.155 total
(fast)

% time hg revert README.txt
hg revert README.txt  0.77s user 0.20s system 95% cpu 1.018 total
(not fast)

% time hg st
? README.txt.orig
hg st  0.68s user 0.21s system 91% cpu 0.962 total
(not fast)

% time hg st
? README.txt.orig
hg st  0.08s user 0.04s system 92% cpu 0.131 total
(fast the second time)

% rm README.txt.orig
time hg st
hg st  0.08s user 0.04s system 80% cpu 0.147 total
(fast)

% rm README.txt
% time hg st
! README.txt
hg st  0.08s user 0.04s system 80% cpu 0.147 total
(fast)

Still, it looks quite promising.


More information about the Mercurial-devel mailing list