obsidian-reference-count icon indicating copy to clipboard operation
obsidian-reference-count copied to clipboard

Lag experienced when typing

Open selfire1 opened this issue 3 years ago • 9 comments

Hi @shabegom! Love this plugin, it adds such a key functionality. Unfortunately though I experience similar issues as in #35. Both on mobile and desktop, Obsidian lags and stutters every few seconds with the plugin enabled.

selfire1 avatar Nov 05 '21 10:11 selfire1

I know! I'm completely rewriting the indexer (and most of the plugin) to greatly reduce the performance hit. I'm close to releasing a new version, so hopefully that resolves the lag issue.

shabegom avatar Nov 29 '21 14:11 shabegom

Awesome. Thanks for your work on it!

selfire1 avatar Nov 29 '21 14:11 selfire1

Give 0.3.0 a spin. let me know if it has solved your slowdown!

shabegom avatar Dec 02 '21 21:12 shabegom

I think this problem still persist on 0.4.0. Obisidan take a while to show the text when i type. The problem went away after I toggle off the plugin.

trungng2006 avatar Feb 08 '22 08:02 trungng2006

I agree with @trungng2006.

DutchPete avatar Feb 11 '22 07:02 DutchPete

In 0.4.1 I've added toggles to turn off indexing after certain events. My suggestion is to toggle off indexing except for when a file is opened and see if that fixes the problem. Note that you will have to change files in order for new references to appear, but hopefully it will fix your lag.

shabegom avatar Feb 11 '22 23:02 shabegom

Thank you for trying to help resolve this problem!!!

However, the bug still there. I tried to toggle off all three options (index when file open, file editted and Layout Changed). The typing lag still happen.

I also tried turn off all my plugins and just leave this reference count plugin on (with all 3 options toggled on). And the typing lag also happen.

edit: For my case, this lag only happen in big file with many links. For small file with few internal links, then there is no/minimal lag.

trungng2006 avatar Feb 12 '22 04:02 trungng2006

Did you reload the vault after changing the settings? That's really weird.

shabegom avatar Feb 12 '22 19:02 shabegom

Yes, it happen even after I restart Obisidian

trungng2006 avatar Feb 13 '22 02:02 trungng2006