unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@ics.uci.edu>
To: Joakim Tjernlund <joakim.tjernlund@transmode.se>
Cc: emacs-devel@gnu.org, Christian Faulhammer <fauli@gentoo.org>,
	emacs@gentoo.org
Subject: Re: Slow start-up on Git trees
Date: Thu, 20 Aug 2009 01:07:59 -0700 (PDT)	[thread overview]
Message-ID: <200908200807.n7K87xFY006731@godzilla.ics.uci.edu> (raw)
In-Reply-To: <OF314E3F83.EFA4A38B-ONC1257618.0028A34C-C1257618.002A1B38@transmode.se> (Joakim Tjernlund's message of "Thu, 20 Aug 2009 09:39:54 +0200")

Joakim Tjernlund <joakim.tjernlund@transmode.se> writes:

  > Dan Nicolaescu <dann@ics.uci.edu> wrote on 19/08/2009 22:56:00:
  > >
  > > Christian Faulhammer <fauli@gentoo.org> writes:
  > >
  > >   > Hi,
  > >   >
  > >   > Joakim Tjernlund reported in
  > >   > http://bugs.gentoo.org/show_bug.cgi?id=281009 that Emacs started in a
  > >   > Git tree is really slow.  This does not happen with other SCM systems
  > >   > and we were able to reproduce the problem and narrowing it down
  > >   > to /usr/bin/git diff-index -z HEAD -- Makefile, called in
  > >   > vc-git-state.  Any possibilities to improve performance here?
  > >
  > > There are at lease two ways:
  > > - talk the git people to improve the performance of "git diff-index",
  > > - implement a vc-git-state-heuristic (see other vc-*-state-heuristic
  > >   functions) that parses .git/index and uses that return the state of
  > >   the file, thus avoiding the "git diff-index" call.
  > >
  > > Is worth it?
  > > I'd say probably not, the delay only happens the first time of accessing
  > > a file in the git tree.
  > 
  > The first time every day is a bit annoying. How about, for a starter, a simple
  > way of disabling vc-git in ~/.emacs?

 (setq  vc-handled-backends                (delq 'Git vc-handled-backends))




      reply	other threads:[~2009-08-20  8:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-19 11:23 Slow start-up on Git trees Christian Faulhammer
2009-08-19 20:56 ` Dan Nicolaescu
2009-08-19 21:04   ` David Reitter
2009-08-19 21:11     ` Dan Nicolaescu
2009-08-20 18:46       ` David Reitter
2009-08-20 19:15         ` Dan Nicolaescu
2009-08-21 19:06           ` Stefan Monnier
2009-08-19 21:54   ` Christian Faulhammer
2009-08-20  7:39   ` Joakim Tjernlund
2009-08-20  8:07     ` Dan Nicolaescu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200908200807.n7K87xFY006731@godzilla.ics.uci.edu \
    --to=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    --cc=emacs@gentoo.org \
    --cc=fauli@gentoo.org \
    --cc=joakim.tjernlund@transmode.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).