From: "Sebastian Wålinder" <s.walinder@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Slowdown with large headings in view
Date: Sat, 11 Nov 2023 07:35:17 +1100 [thread overview]
Message-ID: <87il69cpoa.fsf@nixos.mail-host-address-is-not-set> (raw)
Hello!
I have massive org-mode file with thousands of SRC blocks.
As the file grew, I started to get very poor performance, but setting `org-fold-core--ignore-modifications` to `t` solved it.
However, I still get very poor performance when a lot of folded headings are in view. It gets slower as headings with more text hidden inside its fold come into view.
I have tried running the profiler to find out what the issue is, but no matter how laggy Emacs gets, the profiler records practically no CPU samples or memory usage.
When the massive org buffer is in view and showing large folded headlines, any command run is very slow, even if the action is performed in another buffer entirely. It returns to normal when no window is showing the headings, as well as when I bring the folded headings out of view or unfold them.
I tried disabling font-lock, but it didn't do anything.
How can I profile this, or does anyone have a guess of what could be causing it?
Thank you!
Sebastian
next reply other threads:[~2023-11-10 20:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-10 20:35 Sebastian Wålinder [this message]
2023-11-11 9:50 ` Slowdown with large headings in view Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87il69cpoa.fsf@nixos.mail-host-address-is-not-set \
--to=s.walinder@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).