From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.devel Subject: Re: slow opening of files in git directories in windows Date: Thu, 27 Oct 2011 16:33:44 +0530 Message-ID: <8162ja8zn3.fsf@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1319713464 13805 80.91.229.12 (27 Oct 2011 11:04:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2011 11:04:24 +0000 (UTC) Cc: Eli Zaretskii , flat0103@gmail.com, emacs-devel@gnu.org To: Nikolai Weibull Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 27 13:04:20 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RJNkx-0000Il-F3 for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2011 13:04:19 +0200 Original-Received: from localhost ([::1]:35018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJNkw-0003jZ-Vz for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2011 07:04:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJNkr-0003jJ-Ec for emacs-devel@gnu.org; Thu, 27 Oct 2011 07:04:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJNkq-0000Nw-19 for emacs-devel@gnu.org; Thu, 27 Oct 2011 07:04:13 -0400 Original-Received: from mail-pz0-f47.google.com ([209.85.210.47]:60334) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJNkp-0000Np-RT; Thu, 27 Oct 2011 07:04:11 -0400 Original-Received: by pzd13 with SMTP id 13so7133882pzd.6 for ; Thu, 27 Oct 2011 04:04:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=PoPRNQIJXweZ2s4BnNRJFeFWieS9WT8yFggLoZ1h+HM=; b=dUj9bUdoBXYAxz6kiE6gG1BYGky6lrFO3nRlokkHrTDkGOefBuCetQh6ga+f+CWpYJ xs1prJZHS9S2HlqK1BGGNMqGSMyhKNPjB2pyS+ocyxvgcZi5j32LrJxsOCsWUTavmKLU 0JBn1NvYDh2OtwY7fVodz6Xvs+0n9dpdXD0Do= Original-Received: by 10.68.4.200 with SMTP id m8mr55713816pbm.50.1319713450782; Thu, 27 Oct 2011 04:04:10 -0700 (PDT) Original-Received: from JAMBU-NETBOOK ([115.241.34.6]) by mx.google.com with ESMTPS id p5sm13837599pbk.12.2011.10.27.04.04.03 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Oct 2011 04:04:09 -0700 (PDT) Mail-Followup-To: Nikolai Weibull , Eli Zaretskii , flat0103@gmail.com, emacs-devel@gnu.org In-Reply-To: (Nikolai Weibull's message of "Thu, 27 Oct 2011 12:14:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (windows-nt) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.47 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145641 Archived-At: Nikolai Weibull writes: > On Thu, Oct 27, 2011 at 11:48, Eli Zaretskii wrote: >>> Date: Thu, 27 Oct 2011 08:45:28 +0200 >>> From: Nikolai Weibull >>> Cc: emacs-devel@gnu.org >>> >>> On Thu, Oct 27, 2011 at 08:39, Nathaniel Flath wro= te: >>> > I've noticed that opening files in git repositories open fairly slowl= y using >>> > the latest pretest in windows - sometimes it takes several seconds, w= hereas >>> > the same file not under a repository opens instantly. =C2=A0What woul= d be the >>> > best way to track this down? >>> >>> It=E2=80=99s vc(-git) that=E2=80=99s causing it. =C2=A0It runs git a co= uple of times, which >>> is slow on Windows. =C2=A0Unbelievably slow. > >> Can you tell which git commands are run when a file is visited, and >> which are slow? > > Sorry, I have no insight into vc-mode, but I=E2=80=99m guessing that it r= uns > git rev-parse --show-cdup, git status, and such command to determine > the current status of the opened file. If you have this (setq vc-command-messages t) then you can see the command that vc issues in the messages buffer. > > --=20