unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Yann Hodique <yann.hodique@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Magit slow on Windows
Date: Fri, 11 May 2012 08:35:18 +0200	[thread overview]
Message-ID: <877gwjxm1l.fsf@gmail.com> (raw)
In-Reply-To: 8462c3jll4.fsf@gmail.com

>>>>> "Kevin" == Kevin Yu <yujie052@gmail.com> writes:

> 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 :(.

Unfortunately this is no accurate comparison, since `magit-status'
invokes multiple git commands (and actually none of them is "git
status"). Some of them are calls to "git diff" and "git ls-files" that
can be pretty heavy and might be particularly vulnerable to the cold
cache effect.

That said, calling everything through the git.cmd wrapper will
definitely slow down things even further. According to "some guy on the
internet" (https://github.com/dahlbyk/posh-git/issues/21 :)) it has
a cost that might explain your observations (since `magit-status'
performs about 15 calls to git).
So I'd say tweaking your PATH would definitely be worth a try.

Yann.

-- 
Like many culinary delicacies, revenge is a dish best savored slowly,
after long and delicate preparation.

  -- EMPEROR ELROOD IX, Deathbed Insights




  reply	other threads:[~2012-05-11  6:35 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-10 12:06 Magit slow on Windows Bastian Bechtold
2012-05-10 16:01 ` Eli Zaretskii
2012-05-11  5:35   ` Kevin Yu
2012-05-11  5:39     ` Eli Zaretskii
2012-05-11  5:46       ` Kevin Yu
2012-05-11  5:53         ` Eli Zaretskii
2012-05-11  6:08           ` Kevin Yu
2012-05-11  6:35             ` Yann Hodique [this message]
2012-05-11  7:34               ` Kevin Yu
2012-05-11  7:45           ` Bastian Bechtold
2012-05-11  8:41             ` Bastian Bechtold
2012-05-11  8:44               ` Kevin Yu
2012-05-11 10:37           ` Richard Riley
2012-05-11 11:24             ` Eli Zaretskii
2012-05-11 15:02             ` Óscar Fuentes
2012-05-11 17:40               ` Bastian Bechtold
2012-05-11 17:54                 ` Óscar Fuentes
2012-05-12  0:09             ` Miles Bader
2012-05-12  2:28 ` Richard Stallman
2012-07-20 19:10   ` Bohdan Makohin
2012-07-21  2:43     ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=877gwjxm1l.fsf@gmail.com \
    --to=yann.hodique@gmail.com \
    --cc=emacs-devel@gnu.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).