Ok, it turned out the url http functions also showed up when I was trying to update packages. It seems I'm suffering from this bug: https://emacs.stackexchange.com/questions/60560/error-retrieving-https-elpa-gnu-org-packages-archive-contents-error-http-400 and perhaps for some reason when opening the file through ivy, emacs tried to update a package?
Anyway, I updated to emacs 27.1 to fix that particular bug, but the file still loads very slowly. I'll report this to the ivy developers. On Wed, Sep 23, 2020 at 9:21 AM Peter Bienstman <peter.bienst...@gmail.com> wrote: > > Attached the profile when i open with 'find-file'. It still seems to > call ivy-read, but the interesting thing is that now a lot of time is > apparently spent in 'url-http' functions. The file contains lots of > web links, so it seems emacs is trying to do something with them when > it really shouldn't... > > Cheers, > > Peter > > PS: this is not a permanent paper archive, but rather an ephemeral > collection of journal rss feeds > > On Wed, Sep 23, 2020 at 3:48 AM Ihor Radchenko <yanta...@gmail.com> wrote: > > > > I have no issue opening your file (under 1 second). > > > > > I also attach the profile. > > > > Looking at the profile, the problem seems to be with ivy. Can you try > > opening the file without ivy. Something like > > > > M-: (find-file "~/Org/notes.org") <RET> > > > > P.S. You can also add notes to papers from org-ref. That is a great help > > when your paper database grow bigger. > > > > Best, > > Ihor > > > > Peter Bienstman <peter.bienst...@gmail.com> writes: > > > > > Opening this file takes more than 10 seconds: > > > > > > https://www.dropbox.com/s/tg7pr6tetlh7jwb/toc%2020200922%2007.00.01.org?dl=0 > > > > > > I also attach the profile. > > > > > > I have org files which are much bigger, and they open almost instantly. > > > > > > This is on Windows 10, emacs 26.3, all packages updated to the latest > > > version. > > > > > > Is there anything I can do to speed this up? > > > > > > Thanks!