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: Jack Lloyd
Subject: Re: [Monotone-devel] mtn status speed
Date: Tue, 9 Dec 2008 08:54:32 -0500
User-agent: Mutt/1.5.16 (2007-06-09)

On Mon, Dec 08, 2008 at 09:06:10PM -0800, Tony Tung wrote:

>  I suspect it is calculating the status for all the files in the
> workspace, and *then* filtering out just the files in the command
> line.

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.

stat("rcs_file.hh", {st_mode=S_IFREG|0600, st_size=1610, ...}) = 0
stat("rcs_file.hh", {st_mode=S_IFREG|0600, st_size=1610, ...}) = 0
open("rcs_file.hh", O_RDONLY)           = 4

which seems a little odd, but shouldn't be a huge performance issue.

-Jack




reply via email to

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