From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matt McClure Newsgroups: gmane.emacs.help Subject: Re: vc-git-state very slow, waiting for `git diff-index`, in large repositories Date: Fri, 3 Aug 2012 12:24:03 -0400 Message-ID: References: <501956FE.50204@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f3ba275d260b804c65ef44e X-Trace: dough.gmane.org 1344011059 12570 80.91.229.3 (3 Aug 2012 16:24:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Aug 2012 16:24:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Dmitry Gutov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 03 18:24:19 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SxKfi-0002Vz-VT for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Aug 2012 18:24:19 +0200 Original-Received: from localhost ([::1]:57391 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxKfi-0001u8-91 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Aug 2012 12:24:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxKfZ-0001t0-87 for help-gnu-emacs@gnu.org; Fri, 03 Aug 2012 12:24:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SxKfU-0004eL-RB for help-gnu-emacs@gnu.org; Fri, 03 Aug 2012 12:24:09 -0400 Original-Received: from mail-gg0-f169.google.com ([209.85.161.169]:53119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxKfU-0004e7-MW for help-gnu-emacs@gnu.org; Fri, 03 Aug 2012 12:24:04 -0400 Original-Received: by ggm4 with SMTP id 4so1185055ggm.0 for ; Fri, 03 Aug 2012 09:24:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DCVX/qNmq8BFwJzIU9qnsQanUbkqUUGwpHOJS6DR5S8=; b=o7aDioO3/uqKF9XSFkaGxAAL6uISFvDGedrFeUgoqucu3PR4QrxSfNkf++fOw6wnN/ anlSWKzhy2iQWmy98Zu+Kb79K777aNAUeHxZA8afCxUR/72C1Y5SH7oRXNwhx4uJdnqq TXaU8Co+Pm4lOqqPk17q3ZQcZLQ4KhDVJnNlOqWBP8mD/HXCTxe3kO9j6zJOonm3O5mj KWmGqyrF/PRJ5PUwf2/6FVYYkdZZ8lncaa4MVEv1rumRO83jbiMGqMlpMgf++cbS2ssr V38VAdJqNEj6NrUm6fwDi1tMUP4tVARcbuemF0xuiyRm9RV7nx1dnVy5WWGbNEkxqSCb KMlA== Original-Received: by 10.50.100.134 with SMTP id ey6mr4598373igb.4.1344011043495; Fri, 03 Aug 2012 09:24:03 -0700 (PDT) Original-Received: by 10.50.100.231 with HTTP; Fri, 3 Aug 2012 09:24:03 -0700 (PDT) In-Reply-To: <501956FE.50204@yandex.ru> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.161.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86182 Archived-At: --e89a8f3ba275d260b804c65ef44e Content-Type: text/plain; charset=ISO-8859-1 Hi Dmitry, On Wed, Aug 1, 2012 at 12:19 PM, Dmitry Gutov wrote: > I'd recommend timing 'git diff-index -z HEAD -- ' vs 'git status > --short ' vs 'git status -z --porcelain ' in the console on > your real repository and posting the numbers to the bug 8288. > And maybe contributing an example patch that works for you. The function > responsible for this is `vc-git-state'. Both `git diff-index` and `git status` were comparably slow at least to my subjective perception. After archiving old branches and a garbage clean -- `git tag`, `git branch -d`, `git gc` -- both perform fast enough again. For the time being, I think I retract my earlier belief that I was seeing the same thing as described in bug 8288. Thanks for your help. Matt -- Matt McClure http://www.matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure --e89a8f3ba275d260b804c65ef44e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Dmitry,

On Wed, Aug 1, 2012 at 12:19 PM, Dmitry= Gutov <dgutov@yandex.ru> wrote:
I'd recommend timing 'git diff-index -z HEAD -- <file>' v= s 'git status
--short <file>' vs 'git status -z --porcelain <file>= 9; in the console on
your real repository and posting the numbers to the bug 8288.
And maybe contributing an example patch that works for you. The function responsible for this is `vc-git-state'.

Both `git diff-index` and `git status` were comparably slow at least to my= subjective perception.=A0After archiving old branches and a garbage clean = -- `git tag`, `git branch -d`, `git gc` -- both perform fast enough again.= =A0For the time being, I think I retract my earlier belief that I was seein= g the same thing as described in bug 8288.

Thanks for your help.

Ma= tt

--
Matt McClure
http://www.matthewlmcclure.com
http://www.mapmyfitness.com/profile/matthewlmcclure

--e89a8f3ba275d260b804c65ef44e--