emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Slow to open certain file
@ 2020-09-22 12:35 Peter Bienstman
  2020-09-22 16:48 ` John Kitchin
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Peter Bienstman @ 2020-09-22 12:35 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Slow to open certain file
  2020-09-22 12:35 Slow to open certain file Peter Bienstman
@ 2020-09-22 16:48 ` John Kitchin
  2020-09-22 17:33 ` Andy Klock
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: John Kitchin @ 2020-09-22 16:48 UTC (permalink / raw)
  To: Peter Bienstman; +Cc: org-mode-email

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Slow to open certain file
  2020-09-22 12:35 Slow to open certain file Peter Bienstman
  2020-09-22 16:48 ` John Kitchin
@ 2020-09-22 17:33 ` Andy Klock
  2020-09-23  1:47 ` Ihor Radchenko
  2020-09-23 16:35 ` Eric S Fraga
  3 siblings, 0 replies; 7+ messages in thread
From: Andy Klock @ 2020-09-22 17:33 UTC (permalink / raw)
  To: Peter Bienstman, emacs-orgmode

"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



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Slow to open certain file
  2020-09-22 12:35 Slow to open certain file Peter Bienstman
  2020-09-22 16:48 ` John Kitchin
  2020-09-22 17:33 ` Andy Klock
@ 2020-09-23  1:47 ` Ihor Radchenko
       [not found]   ` <CAMdxoPGsFd7km+c5aAh-cBN+zxwxsCsb5B6nBnpPZt4UMg3qZg@mail.gmail.com>
  2020-09-23 16:35 ` Eric S Fraga
  3 siblings, 1 reply; 7+ messages in thread
From: Ihor Radchenko @ 2020-09-23  1:47 UTC (permalink / raw)
  To: Peter Bienstman, emacs-orgmode

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!


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Fwd: Slow to open certain file
       [not found]   ` <CAMdxoPGsFd7km+c5aAh-cBN+zxwxsCsb5B6nBnpPZt4UMg3qZg@mail.gmail.com>
@ 2020-09-23  7:21     ` Peter Bienstman
  2020-09-23 16:58       ` Peter Bienstman
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Bienstman @ 2020-09-23  7:21 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Slow to open certain file
  2020-09-22 12:35 Slow to open certain file Peter Bienstman
                   ` (2 preceding siblings ...)
  2020-09-23  1:47 ` Ihor Radchenko
@ 2020-09-23 16:35 ` Eric S Fraga
  3 siblings, 0 replies; 7+ messages in thread
From: Eric S Fraga @ 2020-09-23 16:35 UTC (permalink / raw)
  To: Peter Bienstman; +Cc: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Slow to open certain file
  2020-09-23  7:21     ` Fwd: " Peter Bienstman
@ 2020-09-23 16:58       ` Peter Bienstman
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Bienstman @ 2020-09-23 16:58 UTC (permalink / raw)
  To: emacs-orgmode

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!


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-09-23 17:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-22 12:35 Slow to open certain file Peter Bienstman
2020-09-22 16:48 ` John Kitchin
2020-09-22 17:33 ` Andy Klock
2020-09-23  1:47 ` Ihor Radchenko
     [not found]   ` <CAMdxoPGsFd7km+c5aAh-cBN+zxwxsCsb5B6nBnpPZt4UMg3qZg@mail.gmail.com>
2020-09-23  7:21     ` Fwd: " Peter Bienstman
2020-09-23 16:58       ` Peter Bienstman
2020-09-23 16:35 ` Eric S Fraga

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).