UI performance issues with large files

Steps to reproduce

  1. Open large file (40k lines). See attached example.
  2. Open linked preview
  3. Scroll in either pane

Expected result

Smooth, responsive UI.
The attached test file is meant to represent a real-world large file I have that I had trouble with.

Actual result

The UI more freezes for seconds and otherwise is jittery and hiccups. It took over 20 sec to respond to close the linked preview.

Environment

  • Operating system: Windows 10
  • Obsidian version: 0.11.0

Additional information

test-large-file-with-structure.zip (8.7 KB)

Related

https://forum.obsidian.md/t/performance-issues-when-working-with-larger-md-files-with-video-footage

I do see it takes a lot to render/update in preview. The rest of the UI is fine for me. Are you useing custom css/plugins?

Thanks! Not using custom css or plugins. Glad you could reproduce this. Scrolling in a linked preview is the most painful part, which freezes up the entire UI for me. Have you tried this?

Would this be a use case that Obsidian is not meant for, or would you say this is a scaling issue that will be addressed?

Ok I don’t see any freeze and I can scroll just fine. The only problem I have is that it takes a long time to update the preview when I write in the editor. It’s possible that the situation is better for me because we already introduced some changes in 0.11.1 for large documents that you haven’t received yet.

Anyway, we’ll look into your file.

1 Like

Awesome, I’ll look forward to the next release, and will post an update here. Thank you for the response!

May I take a moment to say how awesome Obsidian is overall? I’ve been using it for a month. The local-file and markdown approach is what appealed to me given the privacy and data ownership angles. The polish of the UI blew me away because of how fantastic the usability is. Not to mention the extensibility with the plugins. It’s very quickly become a tool I use heavily now! Amazing work, kudos to the team!

1 Like

Reminds me of other Electron-based editors, most notably Atom (which I abandoned as a Markdown editor just for that reason).

Tested your file on Linux (Mint), editing is quite ok but preview unbearably slow (especially notable when linked so you can see what you do).

And of course this will get worse the more plugins and/or CSS snippets one uses. It pays to stick with the bare minimum required for one’s work.

I hope Obsidian will stay/get as performant as possible (given the technology used), because its features are so much worth it.