lynchjames / obsidian-writing-goals

Set yourself dynamic writing goals for notes and folders to help you hit your long form writing targets with Obsidian.
MIT License
72 stars 3 forks source link

Operates slow in folder with a lot of files #51

Closed foegra closed 2 months ago

foegra commented 9 months ago

I do have a journal folder with files for every day starting from a couple of years ago. Setting a goal for the whole folder - makes typing process freeze and lagging.

Azmoinal commented 3 months ago

I noticed also on each device I have.

The lag is really noticeable. After some time, I had to remove folder goals relying only on note goals, while using novel word count for folder goal.

Unfortunately novel word count doesn't have a daily goal but only the total count.

I hope it could be fixed.

lynchjames commented 2 months ago

I've made a change to updating goal counts every few seconds rather than on each file update which was too expensive for larger vaults. There will be a setting to allow you to change the time in seconds between goal updates.

I have also added more caching to reduce the amount of note processing required.

With these improvements in place, I can see noticeable improvements in performance on a vault with over 800 notes.

lynchjames commented 2 months ago

Changes included in 0.10.1.