all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joakim Tjernlund <joakim.tjernlund@transmode.se>
To: Dan Nicolaescu <dann@ics.uci.edu>
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 09:39:54 +0200	[thread overview]
Message-ID: <OF314E3F83.EFA4A38B-ONC1257618.0028A34C-C1257618.002A1B38@transmode.se> (raw)
In-Reply-To: <200908192056.n7JKu0Bv001763@godzilla.ics.uci.edu>

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?

  Jocke





  parent reply	other threads:[~2009-08-20  7:39 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 [this message]
2009-08-20  8:07     ` Dan Nicolaescu

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

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

  git send-email \
    --in-reply-to=OF314E3F83.EFA4A38B-ONC1257618.0028A34C-C1257618.002A1B38@transmode.se \
    --to=joakim.tjernlund@transmode.se \
    --cc=dann@ics.uci.edu \
    --cc=emacs-devel@gnu.org \
    --cc=emacs@gentoo.org \
    --cc=fauli@gentoo.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.