obsidian-remember-cursor-position
obsidian-remember-cursor-position copied to clipboard
Unusually High StartUp Time
Using the "Debug StartUp Time" toggle, I noticed that every time I startup Obsidian, remember Cursor Position takes up the highest amount of ms for starting up out of all plugins I have installed (~50 plugins).
Remember Cursor Position takes up ~150ms; in comparison: dataview, one of the most resource intensive plugins, only requires 50ms on my machine.
I investigated a bit and it seems reading the remembered cursor positions is the culprit, deleting the respective json reduced to startup time of the plugin to nearly 0ms again.
Thanks for the research. Any ideas how this can be optimized?
Hmm. Maybe add a setting like "max age before deletion" for the remembered positions? My guess is that the amount of cursor positions accumulated for over a year just become too big.
You're right, that would be better.
another filter could be: only remember cursor position for files longer than N lines
then for lots of small files where you don't have to scroll anyway, no need to save/restore