emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] new exporter - noweb substitution issues


From: cberry
Subject: Re: [O] new exporter - noweb substitution issues
Date: Tue, 20 Nov 2012 22:33:20 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

address@hidden writes:

> When I tried to export a large subtree, it took over *5 minutes* to
> export with release_7.9.2-597-gd4b739.
>
> Using the contrib/lisp/*.el files from org-mode-7.8.11
> it took *5 seconds*.
>
> The subtree has a couple dozen '<<...>>'s in src blocks with ':noweb
> yes' and the file itself is 9600 lines long. If I change all to 'noweb
> no', then release_7.9.2-597-gd4b739 runs in about 5 seconds.
>
> Both cases use:
>
>   # Local variables:
>   # *org-babel-use-quick-and-dirty-noweb-expansion*:t


Further info:

ELP timing on a toy case:

| exporter  | function                         | Calls |        Total |     per 
call |
| old       | org-babel-params-from-properties |   149 | 1.1002899999 | 
0.0073844966 |
| 7.8.11    | org-babel-params-from-properties |   142 |     0.966981 | 
0.0068097253 |
| 7.9.2     | org-babel-params-from-properties |   280 | 1.7842110000 | 
0.0063721821 |
| 7.9.2-nil | org-babel-params-from-properties |   280 | 1.7505480000 | 
0.0062519571 |

The last line used  (setq *org-babel-use-quick-and-dirty-noweb-expansion* nil).

The only difference between '7.9.2' and '7.8.11' is I do this:

#+BEGIN_SRC emacs-lisp 
  (load "/Users/cberry/elisp/org-mode-7.8.11/contrib/lisp/org-element.el")
  (load "/Users/cberry/elisp/org-mode-7.8.11/contrib/lisp/org-export.el")
  (load "/Users/cberry/elisp/org-mode-7.8.11/contrib/lisp/org-e-latex.el")
#+END_SRC

to switch over to 7.8.11. In other words, all the babel stuff should
be the same, which includes org-export-preprocess-blocks. Right?

Could it be that the buffer local version
of *org-babel-use-quick-and-dirty-noweb-expansion* got lost??

Chuck






reply via email to

[Prev in Thread] Current Thread [Next in Thread]