[-- Attachment #1: Type: text/plain, Size: 360 bytes --] 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! [-- Attachment #2: profile.png --] [-- Type: image/png, Size: 98695 bytes --]
[-- Attachment #1: Type: text/plain, Size: 775 bytes --] on emacs 27.1 on a Mac, this seems to take under a second to open for me. John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Tue, Sep 22, 2020 at 8:36 AM Peter Bienstman <peter.bienstman@gmail.com> wrote: > 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! > [-- Attachment #2: Type: text/html, Size: 1513 bytes --]
"Peter Bienstman" <peter.bienstman@gmail.com> writes: > Is there anything I can do to speed this up? Might be a good idea to profile the operation to see where it is spending time. Can you: M-x profiler-start C-x C-f (or whatever you are doing to open the file) M-x profiler-report Here's my output on your file: https://p.andyklock.com/_CPU-Profiler-Report_2020-09-22_13_27_05_.html Maybe that will help point you into the right (or at least a) direction. Andy K REF: https://www.gnu.org/software/emacs/manual/html_node/elisp/Profiling.html
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.bienstman@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!
[-- Attachment #1: Type: text/plain, Size: 1349 bytes --] 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 <yantar92@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.bienstman@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! [-- Attachment #2: profile.png --] [-- Type: image/png, Size: 84441 bytes --]
Opens almost immediately for me. Linux, recent emacs and org from git. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4-18-gaea110
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.bienstman@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 <yantar92@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.bienstman@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!