Skip to content

Obsidian freezes when unfolding folders for the first time - significant CPU usage #34

@SublimePeace

Description

@SublimePeace

Hi, first of all thank you so much for your work! Your plugin fills the gap for one of, if not the most requested features for Obsidian. All the other options before yours were either unnecessarily complex (25 minute youtube tutorial + custom syntax knowledge + documentation reading required just to get started), or buggy and constantly breaking.

I'm very delighted with the newest release which reduced unnecessary updates when unfolding a folder for the first time since launching Obsidian, so the following issue is completely gone now:

iK34Enf2gH.mp4

However there's still some micro freezes when unfolding folders, only during the first time though. All subsequent folder unfolds are fine. Please see the micro freeze after unfolding the "Dump - NotesToBeCategorized" folder in this screen recording:

rd0E8ACfqt.mp4

It's hard to do a proper screen recording as the low FPS doesn't capture the freezes well, however opening folders which contain only few items (3-4 notes) causes a noticable micro freeze as well, and these add up.

Case in point: I'm on the lower end of vault sizes at 1009 files, 108 folders, but even so, clicking the "Expand all folders" button makes my Obsidian completely freeze up for 26 seconds, during this time it is completely unusable. Just accidentally unfolding my Attachments folder (which stores 300 .png files) locks up Obsidian for 7-8 seconds. This is 100% attributed to Manual Sort, as with the plugin disabled this is completely instantenous with no freezes.

Here's a graph of my overclocked 12600K CPU's usage after clicking the button with Manual Sort enabled:

Image

For comparison, launching Obsidian with all my plugins (50) enabled spikes the CPU usage to 7.7%, and then goes back down to 0.1% in 3-4 seconds.

I wanted to bring this severe performance issue to your attention, as even with one of the most powerful desktop CPUs and a medium-sized vault this causes disruptive issues when using Obsidian. These freezes are in all likelyhood significantly worse for most users, who are using much weaker processors in their work PC, laptop, and phones. On those setups the severity of this issue is multiplied.

Metadata

Metadata

Assignees

Labels

performancePerformance optimizations and slowdowns

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions