-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Saving files of any size is annoyingly slow #16481
Comments
Thanks for the report. Using the profiler with SPC h P ... on my system indicates that this is due to garbage collection.
|
Actually, the gc-cons values should be fine, sorry for the noise. This might be an upstream issue in undo-tree, introduced in https://gitlab.com/tsc25/undo-tree/-/commit/ffd18cd6250467273815349b0a6c0e569e64ae3d: (define-advice undo-list-transfer-to-tree (:around (orig-fun &rest args) ignore-gc)
(cl-letf (((symbol-function 'garbage-collect) #'ignore))
(apply orig-fun args))) |
Not sure if it's the same issue, but I've tracked something similar in my system associated with undo-tree too. May not be the same issue however, as the behavior you describe is accompanied by really long launch times for me. I should probably try fnussbaum's recommended advice, but I've found a quick fix is to manually delete any large files in |
oh, |
undo-tree also doesn't seem to be actively maintained anymore---I have tried multiple times to send (basically trivial improvement) patches to the maintainer without any response. That, coupled with the fact that it seems to often lose undo information, makes me inclined to think it should just be removed from Spacemacs. |
Yes I am also in favour of removing it we already have too many non maintained packages in Spacemacs. PRs are welcome |
As of eb6bd5e, there is now an option |
Great news, I will make an effort to check |
This is great. Is anyone able to explain how best to chose between I think Will |
it seems that changing the undo system does the trick, for this issue at leaast, thanks all, kudos to maintainers |
It should not matter too much, and one should be able to switch between those without losing undo data. I think the built-in
Yes, it should get installed automatically.
|
Thanks so much! I went with I'm really surprised with the speed bump this has given me. I hadn't understood that that the delay in my agenda views was caused by |
Description
At some point, a few years back, Spacemacs introduced something that made saving files much slower.
Reproduction guide 🪲
Observed behaviour: 👀 💔
It's much slower than a couple of years ago. It used to take no time at all. Yes, it's Spacemacs, try the same thing in plain Emacs and see the difference.
Expected behaviour: ❤️ 😄
It should be as fast as a couple of years ago. I've been waiting for a fix for this regression, but it never came. Everyone's probably got used to software performance degradation, I dunno.
System Info 💻
The text was updated successfully, but these errors were encountered: