From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joakim Tjernlund Newsgroups: gmane.emacs.devel Subject: Re: Slow start-up on Git trees Date: Thu, 20 Aug 2009 09:39:54 +0200 Message-ID: References: <20090819132341.3f2dddc5@gentoo.org> <200908192056.n7JKu0Bv001763@godzilla.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1250792964 9926 80.91.229.12 (20 Aug 2009 18:29:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Aug 2009 18:29:24 +0000 (UTC) Cc: emacs-devel@gnu.org, Christian Faulhammer , emacs@gentoo.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 20 20:29:17 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MeCNw-0008WA-35 for ged-emacs-devel@m.gmane.org; Thu, 20 Aug 2009 20:29:16 +0200 Original-Received: from localhost ([127.0.0.1]:44783 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MeCNs-00029u-TN for ged-emacs-devel@m.gmane.org; Thu, 20 Aug 2009 14:29:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Me2Fm-0006hH-94 for emacs-devel@gnu.org; Thu, 20 Aug 2009 03:40:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Me2Fg-0006fP-Pr for emacs-devel@gnu.org; Thu, 20 Aug 2009 03:40:08 -0400 Original-Received: from [199.232.76.173] (port=54394 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Me2Fg-0006fJ-LI for emacs-devel@gnu.org; Thu, 20 Aug 2009 03:40:04 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:31570) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Me2Ff-0001Tk-UL for emacs-devel@gnu.org; Thu, 20 Aug 2009 03:40:04 -0400 Original-Received: from gw1.transmode.se ([213.115.205.20]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Me2Fc-00022Z-Dd for emacs-devel@gnu.org; Thu, 20 Aug 2009 03:40:00 -0400 Original-Received: from sesr04.transmode.se (sesr04.transmode.se [192.168.201.15]) by gw1.transmode.se (Postfix) with ESMTP id 61CF2650009; Thu, 20 Aug 2009 09:39:56 +0200 (CEST) In-Reply-To: <200908192056.n7JKu0Bv001763@godzilla.ics.uci.edu> X-KeepSent: 314E3F83:EFA4A38B-C1257618:0028A34C; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5 December 05, 2008 X-MIMETrack: Serialize by Router on sesr04/Transmode(Release 8.5 HF407|May 07, 2009) at 2009-08-20 09:39:56 X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Thu, 20 Aug 2009 14:14:34 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:114450 Archived-At: Dan Nicolaescu wrote on 19/08/2009 22:56:00: > > Christian Faulhammer 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