From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolai Weibull Newsgroups: gmane.emacs.devel Subject: Re: slow opening of files in git directories in windows Date: Thu, 27 Oct 2011 12:14:04 +0200 Message-ID: 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 1319710461 24824 80.91.229.12 (27 Oct 2011 10:14:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2011 10:14:21 +0000 (UTC) Cc: flat0103@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 27 12:14:17 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 1RJMyU-0007b1-J7 for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2011 12:14:14 +0200 Original-Received: from localhost ([::1]:49941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJMyT-0003ff-Uq for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2011 06:14:13 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJMyN-0003fO-JD for emacs-devel@gnu.org; Thu, 27 Oct 2011 06:14:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJMyM-0007vA-JH for emacs-devel@gnu.org; Thu, 27 Oct 2011 06:14:07 -0400 Original-Received: from mail-qy0-f169.google.com ([209.85.216.169]:58136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJMyL-0007uk-C1; Thu, 27 Oct 2011 06:14:05 -0400 Original-Received: by qyk29 with SMTP id 29so571755qyk.0 for ; Thu, 27 Oct 2011 03:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=S9Xxn0DNTQ4LDmQShvLYdw4OGTJXVDsI6zqCeBBR56M=; b=oqJtRC5chdJpMy+HJf6wf9GZCmese17apQtcgf1ZkOd+ZjUtUriZrOFzZf0kVb7iIv iDClOu6NFaWufTMUD/Cg13+AHZ1865i0HPQjzkZtjV/EuzJ0UtRQXV8DqBkniCK1bFdj /4Orx92Fy/MFT7W3MhqixdS66IYajVf38zgOI= Original-Received: by 10.68.52.134 with SMTP id t6mr35829492pbo.96.1319710444368; Thu, 27 Oct 2011 03:14:04 -0700 (PDT) Original-Received: by 10.68.66.130 with HTTP; Thu, 27 Oct 2011 03:14:04 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: yzICksAbFo_Ps-QQC2ZJnqkjcPw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.169 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:145640 Archived-At: 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 wrot= e: >> > I've noticed that opening files in git repositories open fairly slowly= using >> > the latest pretest in windows - sometimes it takes several seconds, wh= ereas >> > the same file not under a repository opens instantly. =C2=A0What would= 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 cou= ple 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 run= s git rev-parse --show-cdup, git status, and such command to determine the current status of the opened file.