-
-
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
Excessive cpu and memory usage for org file with Julia Logging debug output #35
Comments
Thanks. This is a known issue - the Org-mode flyspell predicate can be slow under certain circumstances. My recommendation is that you remove |
Okay, thank you. I didn't see this in the closed issues but maybe I didn't look close enough. I have reported this on the org mailing list. |
Nothing wrong with reporting this! I meant that I have observed myself that the Org predicate is the most expensive step during checking. Another alternative which could work for you is to add a custom predicate early in the list such that the problematic block are skipped immediately before checking the words and before calling the flyspell predicate. But that's all we can do, either remove the flyspell predicate completely or prevent it from running by guarding it with an additional predicate. |
The flyspell-mode-predicate is not guaranteed to be sufficiently fast for our purposes. In particular for Org the predicate is O(buffer-size). For now we purely rely faces. We could add more mode-specific predicates if that turns out to be necessary.
See the mailing list thread: https://lists.gnu.org/archive/html/emacs-orgmode/2023-04/msg00092.html |
I've been using jinx for some days now and really like it. It works very well generally. However, I've run into a strange case where jinx gets bogged down by org parsing. The file I have has several thousand lines that look like this:
Visiting the org file with jinx-mode enabled, Emacs basically freezes for some time with 100% CPU usage. The profile output for cpu usage shows:
with the memory usage
I will post a link to this issue on the org mailing list as well. Turning off jinx-mode restores normal behaviour in the org buffer.
The text was updated successfully, but these errors were encountered: