dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.76k stars 260 forks source link

Extreme lag when editing 100 line file #3758

Open jeep opened 2 years ago

jeep commented 2 years ago

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

Describe the bug

I am suffering extreme lag when editing notes similar to the linked note.

To Reproduce

  1. Create this note: https://gist.github.com/jeep/360b09425bb1bae9ce57bb1301b21248
  2. Navigate to the end and try adding new content. After about 30-45 seconds after a restart the lag will start

Expected behavior

Editing files is as snappy as when Dendron is disabled

Screenshots

This shows minor lag, it gets worse with time lag-demo

Desktop (please complete the following information)

Additional context

Add any other context about the problem here.

Dendron Log file

Please attach the output of > Dendron:Dev: Open Logs here

jeep commented 2 years ago

Here is a diagnostics report: https://gist.github.com/jeep/449b11778631638ea4933426bf6ae399 Here is a bigger lag demo: more-lag

jeep commented 2 years ago

Also, I realize that it may require a backlink, since even in my isolated workspace test, I created a journal note first and used that to create the other note.

jonathanyeung commented 2 years ago

Hi @jeep - thanks for reporting. We have seen similar issues occasionally - does this repro 100% for you on this note?

Could you also send the contents of your dendron.yml file? (It's supposed to come with the diagnostic report, but there's an issue with that right now).

jeep commented 2 years ago

It was 100% on that day even with a fresh workspace. This is the 5th similar note and all have made me turn off Dendron about 45 min into taking the notes. Here is my dendron.yml file: https://gist.github.com/jeep/0d4aeec2eac302dbfa8010b8f25516f4

jeep commented 2 years ago

Editing this note for a minute introduced the lag again.

jonathanyeung commented 2 years ago

@jeep - thanks a lot for the info. Would you mind testing one thing for me?

If you set enableEditorDecorations: false in dendron.yml and then reload your workspace, does it remove the lag?

workspace:
    enableEditorDecorations: false
jeep commented 2 years ago

oddly, today, I could not reproduce the lag at all.