From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: Re: Painfully Slow Export Date: Wed, 13 Jun 2018 07:32:46 +0200 Message-ID: References: <73844D54-30A4-48CB-8303-6DA3C932A444@ucsd.edu> <04337B1C-B1CB-4349-87E1-5C7051B38BA7@ucsd.edu> <5817E7AF-A6BB-42A3-93D1-22387C23D618@ucsd.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cba030056e7f4b14" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSyNc-0003ZW-Vh for emacs-orgmode@gnu.org; Wed, 13 Jun 2018 01:31:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSyNb-0002uY-R2 for emacs-orgmode@gnu.org; Wed, 13 Jun 2018 01:31:36 -0400 Received: from mail-qt0-x22a.google.com ([2607:f8b0:400d:c0d::22a]:38241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSyNb-0002uI-Ky for emacs-orgmode@gnu.org; Wed, 13 Jun 2018 01:31:35 -0400 Received: by mail-qt0-x22a.google.com with SMTP id x34-v6so1321134qtk.5 for ; Tue, 12 Jun 2018 22:31:35 -0700 (PDT) In-Reply-To: <5817E7AF-A6BB-42A3-93D1-22387C23D618@ucsd.edu> 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" To: Charles Berry Cc: Org-mode --000000000000cba030056e7f4b14 Content-Type: text/plain; charset="UTF-8" On Wed, Jun 13, 2018 at 12:12 AM Berry, Charles wrote: > > On Jun 12, 2018, at 2:30 PM, Ken Mankoff wrote: > > > > Based on the profiling, I think the reason it takes 1 minute is because > the code blocks use <> blocks? > > I do not see this. > > It takes a bit longer to run the noweb example you gave with 200 `baz' src > blocks, but nothing crazy - like 10 seconds versus 5 for your other > example. I used `C-c C-e l L' for each. > > And the profiler gives `org-babel-expand-noweb-references' about 2% of the > total. > > You are using a recent version of org, right? > Yes: 9.1.13-elpa or org-20180604. Emacs-mac 26.1 port on OSX from Macports. Or Emacs 25.3 downloaded from https://emacsformacosx.com/builds Are you sure you hd 200 baz blocks? I'm not actually able to test with that many. 10 takes 1 second. 20 takes 10 seconds. 30 takes 30 seconds. It seems to grow exponentially. I don't have the patience to debug how long 100 takes. -k. --000000000000cba030056e7f4b14 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed= , Jun 13, 2018 at 12:12 AM Berry, Charles <ccberry@ucsd.edu> wrote:
> On Jun 12, 2018, at 2:30 PM, Ken Mankoff <mankoff@gmail.com&= gt; wrote:
>
> Based on the profiling, I think the reason it takes 1 minute is becaus= e the code blocks use <<noweb>> blocks?

I do not see this.

It takes a bit longer to run the noweb example you gave with 200 `baz' = src blocks, but nothing crazy - like 10 seconds versus 5 for your other exa= mple. I used `C-c C-e l L' for each.

And the profiler gives `org-babel-expand-noweb-references' about 2% of = the total.

You are using a recent version of org, right?
=C2=A0
Yes: 9.1.13-elpa or org-20180604.
Emacs-mac 26.1 port on= OSX from Macports.
Or Emacs 25.3 downloaded from=C2=A0https://emacsformacosx.com/builds

Are you sure you hd 200 baz blocks? I'm not act= ually able to test with that many. 10 takes 1 second. 20 takes 10 seconds. = 30 takes 30 seconds. It seems to grow exponentially. I don't have the p= atience to debug how long 100 takes.

=C2=A0 =C2=A0= -k.
--000000000000cba030056e7f4b14--