[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Magit slow on Windows

From: Yann Hodique
Subject: Re: Magit slow on Windows
Date: Fri, 11 May 2012 08:35:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

>>>>> "Kevin" == Kevin Yu <address@hidden> 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.


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

  -- EMPEROR ELROOD IX, Deathbed Insights

reply via email to

[Prev in Thread] Current Thread [Next in Thread]