[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] speeding up Babel Gnuplot
From: |
Nicolas Goaziou |
Subject: |
Re: [O] speeding up Babel Gnuplot |
Date: |
Wed, 04 Jan 2017 23:36:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Hello,
Thierry Banel <address@hidden> writes:
>>> (car pair) ;; variable name
>>> - (let* ((val (cdr pair)) ;; variable value
>>> - (lp (listp val)))
>>> - (if lp
>>> + (let ((val (cdr pair))) ;; variable value
>>> + (if (not (listp val))
>>> + val
>>> + (let ((temp-file (org-babel-temp-file "gnuplot-"))
>>> + (first (car val)))
>>> + (setcdr pair temp-file) ;; <------ caching here
[...]
> Your proposal provides an additional benefit: caching file generation
> between several invocations of Babel. (The cache in my patch is intended
> to be used within a single Babel invocation, and is then garbage
> collected.). The drawback is that we need to go through all rows of the
> table, compute the hash, just to discover that the hash was already
> known. The purpose of the cache was precisely to avoid going through the
> table again.
I'm not sure to understand.
I suggest to compute the hash of VAL before it is sent through
`org-babel-gnuplot-table-to-data', i.e., before `orgtbl-to-generic' is
called. There's no "going through the table" involved, is it?
Regards,
--
Nicolas Goaziou
- Re: [O] speeding up Babel Gnuplot, Thierry Banel, 2017/01/01
- Re: [O] speeding up Babel Gnuplot, Nicolas Goaziou, 2017/01/01
- Re: [O] speeding up Babel Gnuplot, Thierry Banel, 2017/01/02
- Re: [O] speeding up Babel Gnuplot, Thierry Banel, 2017/01/03
- Re: [O] speeding up Babel Gnuplot, Nicolas Goaziou, 2017/01/03
- Re: [O] speeding up Babel Gnuplot, Thierry Banel, 2017/01/03
- Re: [O] speeding up Babel Gnuplot,
Nicolas Goaziou <=
- Re: [O] speeding up Babel Gnuplot, Thierry Banel, 2017/01/05
- Re: [O] speeding up Babel Gnuplot, Nicolas Goaziou, 2017/01/06
- Re: [O] speeding up Babel Gnuplot, Thierry Banel, 2017/01/06
- Re: [O] speeding up Babel Gnuplot, Achim Gratz, 2017/01/04
- Re: [O] speeding up Babel Gnuplot, Thierry Banel, 2017/01/04
- Re: [O] speeding up Babel Gnuplot, Charles C. Berry, 2017/01/04
- Re: [O] speeding up Babel Gnuplot, Thierry Banel, 2017/01/05