emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.ch.brand@gmail.com>
To: Achim Gratz <Stromeko@nexgo.de>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Opening an Org file slowed down
Date: Thu, 28 Nov 2013 18:37:19 +0100	[thread overview]
Message-ID: <CALn3zoj6VYQqg0jQxcaNiT-yR7AJqfPt+RRf469W8WU6=tvbLw@mail.gmail.com> (raw)
In-Reply-To: <87ppplwlch.fsf@Rainer.invalid>

Hi Achim

On Wed, Nov 27, 2013 at 11:06 PM, Achim Gratz <Stromeko@nexgo.de> wrote:
> I've had a brief look at this.  It seems that some of the differences
> are due to elp instrumenting a much larger range of functions when
> org-mode has already initialized vs. when only org-version had been
> called.

Thank you for pointing this out. So I judged wrongly before when the
roughly squared call counters were missing due to the sometimes
incompletely instrumented Org. Sorry, I correct myself below.

> Another difference is that when org-mode gets initialized
> before, org-startup-folded is true, which introduces another slight
> difference.
>
> lisp/org-mode> time emacs --batch -Q -L lisp -l testing/org-batch-test-init.el -l org-loaddefs 400.org
> 3.748u 0.096s 0:04.22 90.7%
> lisp/org-mode> time emacs --batch -Q -L lisp -l testing/org-batch-test-init.el -l org-loaddefs 800.org
> 13.880u 0.068s 0:14.47 96.3%
> lisp/org-mode> time emacs --batch -Q -L lisp -l testing/org-batch-test-init.el -l org-loaddefs -f org-version 400.org
> 3.764u 0.072s 0:04.08 93.8%
> lisp/org-mode> time emacs --batch -Q -L lisp -l testing/org-batch-test-init.el -l org-loaddefs -f org-version 800.org
> 13.956u 0.072s 0:14.51 96.6%
> lisp/org-mode> time emacs --batch -Q -L lisp -l testing/org-batch-test-init.el -l org-loaddefs -f org-mode 400.org
> OVERVIEW
> 3.736u 0.092s 0:04.16 91.8%
> lisp/org-mode> time emacs --batch -Q -L lisp -l testing/org-batch-test-init.el -l org-loaddefs -f org-mode 800.org
> OVERVIEW
> 13.872u 0.056s 0:14.51 95.9%
>
> Once that is out of the equation, there isn't any difference to speak
> of.

I can confirm: When I re-evaluate, now without elp and by comparing
400.org with 800.org: org-mode and org-version in step #2 of my recipe
are the same, both quadratic. Also "make uncompiled" and "make
compile" are the same, both quadratic.

This means that I can still not get the linear relation expected by
Nicolas Goaziou between the number of elements in an entry and
the processing time.

Michael

  parent reply	other threads:[~2013-11-28 17:37 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-11 16:41 Opening an Org file slowed down Michael Brand
2013-11-11 17:02 ` Bastien
2013-11-24 16:36   ` Nicolas Goaziou
2013-11-22 14:57 ` Michael Brand
2013-11-23 10:52   ` Nicolas Goaziou
2013-11-24 13:49     ` Michael Brand
2013-11-24 16:25       ` Nicolas Goaziou
2013-11-25 18:45         ` Michael Brand
2013-11-26 17:28     ` Nicolas Goaziou
2013-11-26 19:53       ` Michael Brand
2013-11-26 20:09         ` Nicolas Goaziou
2013-11-26 20:50           ` Michael Brand
2013-11-26 22:19             ` Nicolas Goaziou
2013-11-27  9:24               ` Michael Brand
2013-11-27 11:27                 ` Nicolas Richard
2013-11-27 13:35                   ` Michael Brand
2013-11-27 17:10                     ` Nicolas Richard
2013-11-27 22:06                     ` Achim Gratz
2013-11-28  9:29                       ` Nicolas Richard
2013-11-28 17:37                       ` Michael Brand [this message]
2013-11-27 18:13                 ` Achim Gratz
2013-11-27 19:44                   ` Michael Brand
2013-11-27 20:05                     ` Achim Gratz
2013-11-27 20:34                       ` Michael Brand

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to='CALn3zoj6VYQqg0jQxcaNiT-yR7AJqfPt+RRf469W8WU6=tvbLw@mail.gmail.com' \
    --to=michael.ch.brand@gmail.com \
    --cc=Stromeko@nexgo.de \
    --cc=emacs-orgmode@gnu.org \
    /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 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).