Magit slowness

51 views
Skip to first unread message

Timothy Licata

unread,
Jan 5, 2017, 2:41:25 PM1/5/17
to magit
Hello group,

First of all, love Magit, thanks for the development effort.

I recently setup a new Ubuntu machine. Setting up Emacs (25.1.1) included downloading a new version of Magit.

I noticed `M-x magit-status` now takes 7-10 seconds. Any thoughts on how to speed this up? A `git status` in the same repository takes < 1 second. So does `M-x magit-status` in the same repo on an old machine.

Other operations, including staging and unstaging, have also noticeably slowed down.

Current (slow) version: 20170104.1507 (w/ Git 2.10.2).
Previous (fast) version: 20160418.1513 (w/ Git 2.8.1).

Thanks,
Tim

Noam Postavsky

unread,
Jan 5, 2017, 6:00:28 PM1/5/17
to Timothy Licata, magit
On Thu, Jan 5, 2017 at 2:41 PM, Timothy Licata <timothy...@gmail.com> wrote:
>
> I noticed `M-x magit-status` now takes 7-10 seconds. Any thoughts on how to speed this up? A `git status` in the same repository takes < 1 second. So does `M-x magit-status` in the same repo on an old machine.
>
> Other operations, including staging and unstaging, have also noticeably slowed down.
>
> Current (slow) version: 20170104.1507 (w/ Git 2.10.2).
> Previous (fast) version: 20160418.1513 (w/ Git 2.8.1).

Can you do M-x start-profile RET RET M-x magit-status RET M-x
profile-report RET on both versions and see where the change is?

Timothy Licata

unread,
Jan 5, 2017, 10:20:03 PM1/5/17
to Noam Postavsky, magit
Hi Noam,

On Thu, Jan 5, 2017 at 6:00 PM, Noam Postavsky <npos...@gmail.com> wrote:
> Can you do M-x start-profile RET RET M-x magit-status RET M-x
> profile-report RET on both versions and see where the change is?

Thanks for the hint. The profiler didn't appear to blame Magit.

I'm afraid my initial comparisons weren't valid. One ran on a host
machine and the other on a guest. The VM is the likely culprit.
Magit just happened to be the point where I felt the slow down.

Apologies for the noise,

Tim

Host:

$ time git status
real 0m0.022s
Refreshing buffer `*magit: '...done (0.548s)

Guest:

$ time git status
real 0m0.666s
Refreshing buffer ‘*magit: ’...done (2.642s)
Reply all
Reply to author
Forward
0 new messages