From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-dev+bounces-39141-garchives=archives.gentoo.org@lists.gentoo.org>) id 1NVm4q-0002bB-1j for garchives@archives.gentoo.org; Fri, 15 Jan 2010 13:19:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 834B6E0462; Fri, 15 Jan 2010 13:17:56 +0000 (UTC) Received: from mail-px0-f174.google.com (mail-px0-f174.google.com [209.85.216.174]) by pigeon.gentoo.org (Postfix) with ESMTP id 5074EE0462 for <gentoo-dev@lists.gentoo.org>; Fri, 15 Jan 2010 13:17:56 +0000 (UTC) Received: by pxi4 with SMTP id 4so467184pxi.32 for <gentoo-dev@lists.gentoo.org>; Fri, 15 Jan 2010 05:17:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=WdEb0173hv5+ETngOICUo0V7p5qxjKvIcd4iqlg7ktk=; b=VofTvdlJmbFgFAXpperjLvLpd33lYZtp9w2qOnPCBEJpc9nQACvZDaBjEA5uhrEqUq p6bPEL6ygFzPfVJphhqkkHeKMwehLnDndz5WUYQfEtcKMyalr3BGmwDPyT38sLzyYTEn 7a0tr5dlt0euM7C9AcTaDi+10Ui2JyPw5t24M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=nU0KiiDfAxOjDNVgmmK5BafXguiUdHIOPbOe4S2GLA0+MHHJbHeMHlaz57A46TjwvH qb9Dh8u3GXDP/oj6uRozoTZQKF5QE5ikIYIMWsoM+x5n/pxTx6TPrzfZOcFURHBu0jcg QaLALoGlzjkowLvd7r0Nq0gH4CkEIAVdNJYrM= Precedence: bulk List-Post: <mailto:gentoo-dev@lists.gentoo.org> List-Help: <mailto:gentoo-dev+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Received: by 10.115.26.7 with SMTP id d7mr1658936waj.12.1263561475811; Fri, 15 Jan 2010 05:17:55 -0800 (PST) In-Reply-To: <8b4c83ad1001141410y58ac534ex63afeab22190bc7d@mail.gmail.com> References: <201001112305.16532.hwoarang@gentoo.org> <201001122149.11091.hwoarang@gentoo.org> <e117dbb91001121235m1a6b99acj4cefccd2b5de2a35@mail.gmail.com> <201001131054.03953.vapier@gentoo.org> <8b4c83ad1001140449k49995e0ra01eeca16167735a@mail.gmail.com> <fcaeb9bf1001140547l749054adv542caf7646e111f3@mail.gmail.com> <8b4c83ad1001141410y58ac534ex63afeab22190bc7d@mail.gmail.com> Date: Fri, 15 Jan 2010 20:17:55 +0700 Message-ID: <fcaeb9bf1001150517r696cb379jd2b1d40cb68ad430@mail.gmail.com> Subject: Re: [gentoo-dev] proxy maintainership and gentoo-x86 scm From: Nguyen Thai Ngoc Duy <pclouds@gmail.com> To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 109832d3-3171-48c5-b336-f89062dc3264 X-Archives-Hash: 92f6e65e9c9751c301269584c9ea0ea5 On 1/15/10, Nirbheek Chauhan <nirbheek@gentoo.org> wrote: > > "git commit <dir>" and "git status <dir>" still do full tree lstat(). > > I can try to make a patch or two to reduce lstat() in such cases. > > > > > That would definitely compliment the --stat option to git diff et al, > making git more usable on repos with a huge no. of files. Now that I > think about it, why does git <command> <dir> need to do a full tree > stat at all? Doesn't the added specification of <dir> mean "I'm only > interested in this dir for this command, other stuff doesn't matter"? Probably because the difference is too small to notice on smaller-size projects, or because people tend to do whole-tree operations so "git <command> <dir>"'s performance does not catch the developers' eyes. Anyway, stat()ing 80k files takes about 1 second on my machine, still tolerable. There is whole-tree open() in "git status" to check for untracked files, that contributes more on "git status" slowness. How long on average did a Git operation take on your tmpfs? -- Duy