[Top][All Lists]

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

Re: [O] speeding up Babel Gnuplot

From: Charles C. Berry
Subject: Re: [O] speeding up Babel Gnuplot
Date: Wed, 4 Jan 2017 15:15:37 -0800
User-agent: Alpine 2.20 (OSX 67 2015-01-07)

On Wed, 4 Jan 2017, Achim Gratz wrote:

Thierry Banel writes:
There is no way to ensure a single call to
(org-babel-gnuplot-process-vars) without modifying ob-core.el. I don't
want to do that because I would have to change a lot of babel backends.

But that is the right fix to apply, unless there is a reason for the
input vars to be processed multiple times.  I haven't looked at the
Babel code in the last two years, but generally I'd suggest that each
argument should only be processed once per Babel block since the second
processing could have unwanted side-effects.

I'm late to this party, but AFAICS input vars are processed just once.

Running this:

#+BEGIN_SRC emacs-lisp :var a=(setq runvar (+ 1 runvar))

increments runvar by one each time it is run.

So this seems not to be a general babel issue.



reply via email to

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