From: cberry@tajo.ucsd.edu
To: emacs-orgmode@gnu.org
Subject: Re: new exporter - noweb substitution issues
Date: Tue, 20 Nov 2012 22:33:20 -0800 [thread overview]
Message-ID: <87a9ubbh3j.fsf@tajo.ucsd.edu> (raw)
In-Reply-To: 87ehjogdgb.fsf@tajo.ucsd.edu
cberry@tajo.ucsd.edu 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
next prev parent reply other threads:[~2012-11-21 6:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-20 21:40 new exporter - noweb substitution issues cberry
2012-11-21 6:33 ` cberry [this message]
2012-11-22 5:10 ` [BUG] org-export-with-current-buffer-copy drops local variable WAS:Re: " cberry
2012-11-22 10:06 ` Nicolas Goaziou
2012-11-28 19:40 ` cberry
2012-11-30 13:00 ` Nicolas Goaziou
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=87a9ubbh3j.fsf@tajo.ucsd.edu \
--to=cberry@tajo.ucsd.edu \
--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).