From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Tangling takes long - profiling and calling R Date: Tue, 16 Jun 2015 12:29:50 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4o7y-0002Wl-Bs for emacs-orgmode@gnu.org; Tue, 16 Jun 2015 06:29:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4o7u-0002My-8S for emacs-orgmode@gnu.org; Tue, 16 Jun 2015 06:29:58 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:37688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4o7u-0002Mc-2z for emacs-orgmode@gnu.org; Tue, 16 Jun 2015 06:29:54 -0400 Received: by wifx6 with SMTP id x6so14859016wif.0 for ; Tue, 16 Jun 2015 03:29:53 -0700 (PDT) In-Reply-To: (Charles C. Berry's message of "Mon, 15 Jun 2015 11:52:55 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Charles C. Berry" Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable "Charles C. Berry" writes: > On Mon, 15 Jun 2015, Rainer M Krug wrote: > >> Hi >> >> I have a relatively large file with >> about 200 =3Dsource 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/wpLELTe= st.R >> | You are developing: (EnergyBalance) >> | Wrote /Users/rainerkrug/Documents/Projects/EnergyBalance/R/plotwpLELFi= tListParDistr.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 =2D-=20 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: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQEcBAEBCAAGBQJVf/qeAAoJENvXNx4PUvmCi/8H/jd7QDcwqR/r4A02hNXhRF4a e5rP8pbTZNc2w6t+1WTQBVKjzWqOz0ZtsCALZW1gitBtbDuEHmXzS/p7T253o9wV 4IzmQffdkN9WIW4PK5zlClmjlGmSamncqU7DfZ4h+nqhm8/xT+7cZLu6WyiYbj16 sYUI+unX6zViSjiZs4ZXtt4LpJaWU5yJetzVa/gkXD2jBkSEZRGeepG0qGK3AsJS zbiaF8qWvvddp84STCepEyxYrJDj7o3+dVrXBbN9baiIQivuEPtVWyM2sbgaF7sY IdOBxx/xMy3PDc6VuXFLLFogD5+o70KDq3xNW/xRj6yyH60zbmn2CCTBw1Zx6qI= =Ea8Y -----END PGP SIGNATURE----- --=-=-=--