New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On next, staging (in my "dot-emacs" repository) is extremely slow #1772
Comments
Are there many submodules and did you read https://github.com/magit/magit/wiki/FAQ#what-can-i-do-about-poor-performance? |
Performance still has to be improved a lot, but that will require big changes which have to wait until after the release. Did following these instructions help? |
(There's one thing I will attempt before the release, so there is some hope). |
I haven't yet dug through it. On my Linux machine I have a medium sized project where the very first |
It's odd how consistent this behavior is. On my work machine, the first 's' of the day to stage a file is extremely slow (up to 20 seconds), but thereafter it's extremely fast. It's like some kind of cache needing to be primed or something. |
@jwiegley "Emacs starts quicker with autoloaded functions, since their libraries are not loaded right away; but you need to wait a moment when you first use such a function, while its containing file is evaluated." from https://www.gnu.org/software/emacs/manual/html_node/eintr/Autoload.html next received some commits related to autoloads recently. Could what you experience be related to this? EDIT: hmm, your original issue was opened 24 days ago. |
I don't think that's it, but you never know. I'll run |
@tarsius Here's something interesting: I'm staging a single file, but |
Perhaps not relevant for jwiegley, but FWIW magit-auto-revert-mode is the biggest culprit for me when magit actions are slow. In my current repo, without auto-revert, staging or unstaging takes ~0.4 seconds. With auto-revert processing 72 buffers I get this:
So if magit seems slow, make sure you check whether this is the issue. I've logged issue #1807 related to this. |
@jwiegley Yeah, |
@tarsius Thank you! But ever since I disabled |
Maybe because I'm also doing a multi-core build at the same time, but staging a single file takes about 6-10 seconds.
The text was updated successfully, but these errors were encountered: