all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Jeremie Juste <jeremiejuste@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: opening a 0.5 MB org file is slow
Date: Wed, 30 Sep 2020 12:12:33 +0800	[thread overview]
Message-ID: <87a6x7q4we.fsf@localhost> (raw)
In-Reply-To: <87eemknvhc.fsf@gmail.com>

> I'm afraid I don't know how to profile the opening of a file. Does
> anybody know a function that would do the profiling like
> elp-instrument-function for functions?

There is elp-instrument-package. Also, I did successful profiling with
simple profiler-start/profiler-report before and after opening the file.

In general, time for opening org files depends on many factors [1].
Profiling is the way to go if one wants to find the bottlenecks.


[1] https://www.reddit.com/r/orgmode/comments/ivifjv/a_question_about_orgagenda_performance_and_org/g5rxzf6/

Best,
Ihor



Jeremie Juste <jeremiejuste@gmail.com> writes:

> Hello Uwe,
>
> Can you test with emacs -Q ?
>
> A 1.6M org file took a little under 7 sec on my computer.
> It probably depends on the number of minor modes are being loaded, font-lock,
> auto-completion, etc. 
>
> I'm afraid I don't know how to profile the opening of a file. Does
> anybody know a function that would do the profiling like
> elp-instrument-function for functions?
>
> -- 
> HTH
> Jeremie Juste
>
>
>
> On Tuesday, 29 Sep 2020 at 21:11, Uwe Brauer wrote:
>> Hi 
>>
>> maybe I am just to impatient but on my 8 GB Thinkpad X1 (4gen) to open a
>> 0.5MB org file takes around 15 sec.
>>
>> Any change to speed this up?
>>
>> Thanks and regards
>>
>> Uwe Brauer 
>>


  parent reply	other threads:[~2020-09-30  4:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-29 19:11 opening a 0.5 MB org file is slow Uwe Brauer
2020-09-29 21:06 ` Jeremie Juste
2020-09-29 21:48   ` Russell Adams
2020-09-30  4:12   ` Ihor Radchenko [this message]
2020-09-30  4:35     ` Samuel Wales
2020-09-30  5:01       ` TEC
2020-09-30  5:13         ` Ihor Radchenko
2020-09-30 22:33           ` Jeremie Juste
2020-09-30 19:13         ` Uwe Brauer
2020-09-30 16:37   ` Eric S Fraga
2020-09-30 19:10   ` Uwe Brauer
2020-09-30 22:27     ` Jeremie Juste
2020-10-01  8:41       ` Uwe Brauer
2020-10-01  8:44         ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a6x7q4we.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jeremiejuste@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.