elias-sundqvist / obsidian-annotator

A plugin for reading and annotating PDFs and EPUBs in obsidian.
GNU Affero General Public License v3.0
1.51k stars 71 forks source link

v0.2.4 Annotator takes too long to load on Android #205

Open bilginsenol opened 2 years ago

bilginsenol commented 2 years ago

On Android 12, the app launches in around 25 seconds when the annotator plugin is enabled. Debug startup time screen tells me that total plugin setup time is 25112ms, and individually obsidian-annotator plugin is 23744ms. I have only 2 pages (pdfs) with annotation targets.

Disabling the plugin solves my problem and the app launches quickly on Android.

Obsidian launches with no unusual waiting times on my Windows computer.

I am not sure if this is caused by Obsidian Android app or the plugin itself, but I am posting here.

Ellpeck commented 2 years ago

I'm experiencing the same issue, with the other 20+ plugins I have installed taking a fraction of the time combined than annotator takes on its own when loading on Android.

It this load time ends up being absolutely necessary for the plugin to work correctly, maybe there's some way of changing the loading procedure so that it only actually loads everything that takes long to load when you're opening the very first annotator markdown file, rather than when launching Obsidian, since I rarely actually use the plugin on mobile, but still want to have it enabled for the rare cases that I do.