From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Yu Newsgroups: gmane.emacs.devel Subject: Re: Magit slow on Windows Date: Fri, 11 May 2012 14:08:55 +0800 Message-ID: <8462c3jll4.fsf@gmail.com> References: <6C45C785-8275-46B8-9D1E-FF8D2B52C3E2@bbheim.de> <83mx5gyqht.fsf@gnu.org> <84k40jz3eg.fsf@163.org> <83zk9fxoma.fsf@gnu.org> <84pqabtgky.fsf@gmail.com> <83y5ozxnzd.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1336716566 30922 80.91.229.3 (11 May 2012 06:09:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 May 2012 06:09:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 11 08:09:25 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SSj2Y-0004eV-TA for ged-emacs-devel@m.gmane.org; Fri, 11 May 2012 08:09:23 +0200 Original-Received: from localhost ([::1]:48475 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSj2Y-0003qF-3K for ged-emacs-devel@m.gmane.org; Fri, 11 May 2012 02:09:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSj2U-0003q7-Sa for emacs-devel@gnu.org; Fri, 11 May 2012 02:09:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSj2T-0004Pv-8c for emacs-devel@gnu.org; Fri, 11 May 2012 02:09:18 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:45671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSj2T-0004OV-1X for emacs-devel@gnu.org; Fri, 11 May 2012 02:09:17 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SSj2N-0004Xi-29 for emacs-devel@gnu.org; Fri, 11 May 2012 08:09:11 +0200 Original-Received: from 114.113.197.132 ([114.113.197.132]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 May 2012 08:09:11 +0200 Original-Received: from yujie052 by 114.113.197.132 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 May 2012 08:09:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 114.113.197.132 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.96 (windows-nt) Cancel-Lock: sha1:vkTvn408yACFe2LgY/P0NOA5zCg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:150434 Archived-At: > > Then I think this is wrong: you should see > > c:/git/bin/git.exe If you do not want to export all the unix fileutils commands comming with msys, the msys installation will wrap the git.exe command in git.cmd, and put it in a seperated directory. > > Invoking git through a Windows shell script incurs an unnecessary > slowdown. You should start Emacs from the shell that knows about the > msysgit installation, to get correct behavior. here's the test from eshell: $ which git c:/git/cmd/git.cmd $ time git status 0.156 secs If you invoke M-x magit-status. It takes about 3 seconds to update the status. I don't why :(. Magit is really faster on Linux. I tested it in my virtual machine (Debian 6.0) on the same repo(shared by virtual box shared directory). It takes less than 1 second to show the repo status.