-
Notifications
You must be signed in to change notification settings - Fork 22
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
Huge slowdown on emacs 27.1 #27
Comments
Hi, I'll have to look more into it. In the meantime, could you do me a favor and check if the issue persists in Org when you insert the characters in question literally? As in, if you open a large file full of actual special characters, does the problem persist in vanilla Emacs? If Spacemacs experiences this problem then maybe vanilla does as well. |
Sure! Actually this was a great suggestion, thanks. Thanks for your help I think you can close this, even if this persists with a different font it's clearly emacs fault. |
No prob. You can investigate the font at point (together with many other properties of the text) using |
With pleasure :) I am attaching the output of |
Wonderful, thank you for your time! I will try and see if I can find a way to explore that issue, and if not, I can at least try to curate a list of "cursed fonts" so to say. :) |
Hi, thanks for this pretty package!
I have recently updated to emacs 27.1 and using org-superstar-mode renders emacs unusable with bigger org files. Even for smaller files you can see the effect particularly when moving between headings or folding/unfolding. Adding
(setq inhibit-compacting-font-caches t)
to init.el didn't help.I first experienced this using spacemacs (see this issue) something similar happens also on doom-emacs (issue).
I am not sure to what extent this is caused by org-superstar because on spacemacs a similar slowdown could be observed when visiting a huge org file with some "non-standard" unicode glyphs without org-superstar enabled. But this definitely happens also on vanilla 27.1 with just org-superstar.
I am attaching profile reports for vanilla 27.1. These were generated by opening the org file pasted below, doing
M-x profiler-start
, thenM-x org-superstar-mode
, moving the cursor between headings, folding/unfolding, and finallyM-x profiler-stop
.The org file:
superstar_profilecpu.txt
superstar_profilemem.txt
M-x emacs-version
: GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.21, cairo version 1.16.0)The text was updated successfully, but these errors were encountered: