-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Lag of 0.5-1 sec in large org files #792
Comments
Are you able to provide the org file, or at least a similar structure file with dummy content? |
I've updated the very first post here. I should have done it from the begging. Good suggestion @kristijanhusak.
The only thing unusual is lots of subheadings in the |
Can you provide some info about your hardware? I tested your file with both my configuration and minimal init, and didn't notice any slowness. slow-org-edit.mp4 |
Do you have similar issues when editing any other non-org bigger file that is highlighted with treesitter? |
This is how it is immediately after a fresh boot. I have 20 tabs open in Firefox (Librewolf). I am assuming this is the reason.
When I open my large org file, the numbers barely change: they got from 66% percent occupied RAM to 67%. |
No. I just tried a 3000 lines Haskell file. No lag. |
Ok, just to rule out treesitter highlighting, can you try to open up the file, disable highlighting with |
I did as you said, and there is still a lag. |
Ok I just figured out that I'm testing with nightly Neovim. I do notice some lag with 0.10 and 0.10.1, I'll look into it. |
Great! I am not crazy :-)
Thank you very much!
I've begun using this plugin, again (I tried using it once a couple of years ago, and I don't remember why I stopped), only yesterday. |
I pushed a change to master that should speed up things. Can you give it a test? |
I tested it with the latest |
Potentially fixes issue: nvim-orgmode#792
Potentially fixes issue: nvim-orgmode#792
Describe the bug
When editing a large file (my NixOS
configuration.org
file is 2561 lines long) I feel a lag of 0.5-1 sec on any key press, especially in insert mode. On smaller files, there is no lag.Here is my large NixOS configuration.org file: https://gitlab.com/-/snippets/3736795.
Steps to reproduce
Just try editing a large enough Org file, you will feel the lag immidiaty.
Expected behavior
No lag when editing large Org files.
Emacs functionality
N/A
Minimal init.lua
The same thing happens with
nvim -u minimal_init.lua
.Screenshots and recordings
No response
OS / Distro
NixOS unstable
Neovim version/commit
0.10.1
Additional context
Similar issue: #443.
Not sure if its connected, but, in that issue, there was a lag of 5-6 seconds.
And, when the issue was solved, the OP stated at the end:
The text was updated successfully, but these errors were encountered: