[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Tangling takes long - profiling and calling R
From: |
Rainer M Krug |
Subject: |
Re: [O] Tangling takes long - profiling and calling R |
Date: |
Tue, 16 Jun 2015 12:29:50 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
"Charles C. Berry" <address@hidden> writes:
> On Mon, 15 Jun 2015, Rainer M Krug wrote:
>
>> Hi
>>
>> I have a relatively large file with
>> about 200 =source blocks (R) to be tangled to get an R package. But the
>> tangling takes about 20 seconds.
>>
>> Profiling the tangling showed that the call to ~mapcar~ in
>> ~org-babel-params-from-properties~ takes about 40% of the execution time
>> (see profiler excerpt below). Is there anything one can do to make this
>> faster?
>>
>> In addition to this, I observed there is some interaction with ESS when
>> tangling, which in my understanding is not necessary. I get messages
>> like
>>
>> ,----
>> | ...
>> | Wrote /Users/rainerkrug/Documents/Projects/EnergyBalance/.Rbuildignore
>> | Wrote /Users/rainerkrug/Documents/Projects/EnergyBalance/tests/wpLELTest.R
>> | You are developing: (EnergyBalance)
>> | Wrote
>> /Users/rainerkrug/Documents/Projects/EnergyBalance/R/plotwpLELFitListParDistr.R
>> | You are developing: (EnergyBalance)
>> | ...
>> `----
>>
>> where the messages "You are developing: (EnergyBalance)" come from
>> ESS. Is this to be expected that R is called for some blocks, but not
>> for others, when tangling?
>
> The major mode is invoked when tangling, if possible.
>
> This enables comments to be rendered. See the docstring for
> `org-babel-spec-to-string'.
>
> HTH,
Yes - thanks,
Rainer
>
> Chuck
--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: address@hidden
Skype: RMkrug
PGP: 0x0F52F982
signature.asc
Description: PGP signature
- [O] Tangling takes long - profiling and calling R, Rainer M Krug, 2015/06/15
- Re: [O] Tangling takes long - profiling and calling R, Rainer M Krug, 2015/06/15
- Re: [O] Tangling takes long - profiling and calling R, Charles C. Berry, 2015/06/15
- Re: [O] Tangling takes long - profiling and calling R,
Rainer M Krug <=
- Re: [O] Tangling takes long - profiling and calling R, Nicolas Goaziou, 2015/06/15
- Re: [O] Tangling takes long - profiling and calling R, Rainer M Krug, 2015/06/16
- Re: [O] Tangling takes long - profiling and calling R, Rainer M Krug, 2015/06/16
- Re: [O] Tangling takes long - profiling and calling R, Nicolas Goaziou, 2015/06/16
- [O] org version numbers in file - WAS: Tangling takes long - profiling and calling R, Rainer M Krug, 2015/06/17
- Re: [O] org version numbers in file - WAS: Tangling takes long - profiling and calling R, Nicolas Goaziou, 2015/06/18