From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Opening an Org file slowed down Date: Thu, 28 Nov 2013 18:37:19 +0100 Message-ID: References: <87r4a7tmo2.fsf@gmail.com> <877gbv8437.fsf@gmail.com> <87k3fv6i3e.fsf@gmail.com> <87fvqi7qmg.fsf@gmail.com> <874n6ydr02.fsf@yahoo.fr> <87ppplwlch.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm5Wm-0000co-KC for emacs-orgmode@gnu.org; Thu, 28 Nov 2013 12:37:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vm5Wi-00011S-QZ for emacs-orgmode@gnu.org; Thu, 28 Nov 2013 12:37:24 -0500 Received: from mail-lb0-x235.google.com ([2a00:1450:4010:c04::235]:58111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm5Wi-00011O-IS for emacs-orgmode@gnu.org; Thu, 28 Nov 2013 12:37:20 -0500 Received: by mail-lb0-f181.google.com with SMTP id q8so6452182lbi.12 for ; Thu, 28 Nov 2013 09:37:19 -0800 (PST) In-Reply-To: <87ppplwlch.fsf@Rainer.invalid> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Achim Gratz Cc: Org Mode Hi Achim On Wed, Nov 27, 2013 at 11:06 PM, Achim Gratz 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