zolrath / obsidian-auto-link-title

Automatically fetch the titles of pasted links
MIT License
415 stars 55 forks source link

Why does it take so long to fetch titles? #87

Closed albertoloscerritos closed 6 months ago

albertoloscerritos commented 9 months ago

I'm using obsidian 1.4.14 and I feel this plugins (which I find very useful btw) takes too long to fetch the titles. Specially when compared with plugins like https://github.com/nekoshita/obsidian-auto-card-link or https://github.com/Meikul/obsidian-thumbnails which achieve a very similar (and more complex) task. The average time for me is between 1-3 seconds. I'm I doing something wrong? Thanks.

Atticuszz commented 7 months ago

i encountered this problem as well ,also find that if move coursor in the title area ,it would be no response seems like blocking whole app by fetching title

murazi commented 7 months ago

obsidian ver:1.4.16

my Fetching Title#7027 is "[Fetching Title#7027]," and it doesn't change for long.

zolrath commented 6 months ago

This should be improved with the newest version - if you're still seeing this please let me know and give example URLs/times!

khaosdoctor commented 6 months ago

@murazi @Atticuszz for what I could see, it depends a lot on three factors:

I the new version that's on #91 I tried to remove Electron from the play and rely solely on Obsidian's internal URL handler, which (hopefully) queues any event or anything that we need so it would bypass the 3rd point, however the other two are still valid and something we can't control. I tried to trim millis from everything I could find (including reducing the hash size, not 'computing' the hash but getting it from random bytes), please let us know if it's faster for you!

Atticuszz commented 6 months ago

thanks for your nice work!🥰it seems fixed now