monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] mtn status speed


From: Markus Wanner
Subject: Re: [Monotone-devel] mtn status speed
Date: Wed, 10 Dec 2008 10:29:57 +0100
User-agent: Thunderbird 2.0.0.18 (X11/20081125)

Hello Jack,

Jack Lloyd wrote:
> I could not say for certain, but from looking at the code implementing
> the status command it appears to respect the masks provided on the
> command line. Tracking the open syscalls using strace
> (http://linux.die.net/man/1/strace) also seemed to confirm this, mtn
> didn't open or stat any files outside of the paths specified.
> 
> One odd thing I noticed is that mtn will stat each file twice,
> right in a row.

Yeah, this is known and has been discussed before. Unfortunately I don't
remember the reason for calling stat() twice. Caching of the stat()
result has been considered, but argued against, because stat() should be
fast and simple enough.

Regards

Markus Wanner





reply via email to

[Prev in Thread] Current Thread [Next in Thread]