From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: I'm tripping over #+BABEL: vs. #+PROPERTY: Date: Sun, 18 Mar 2012 22:37:20 +0100 Message-ID: <803995ioa7.fsf@somewhere.org> References: <21A5E1E970CD46459ECBE86D6CC4B28C5364FAE0@spexch01.WindLogics.local> <87ipi72g0q.fsf@gmx.com> <11652.1331760067@alphaville> <80y5r1sxom.fsf@somewhere.org> <28105.1331828053@alphaville> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Nick, Nick Dokos wrote: >> The "automagic C-c C-c" should be NOT[1] done after each key press or >> some such. That certainly would be a killer feature, in its real >> acception: performance would be unbearable. >>=20 >> In my mind, automatically (re-)parsing the meta options should be ea= ch >> time the user presses `C-c C-v C-e' (eval code blocks); that is, when >> the user expects his options to be taken into account. >>=20 >> Does it make sense? >>=20 >> Best regards, >> Seb >>=20 >> Footnotes: >>=20 >> [1] This word was missing (in the original post)! >>=20 > > Well, it might make sense but you can try it out and let us know: > > - make files with 10, 100, 1000 trivial (or even empty) code blocks, just > enough to make sure that org-babel-execute-maybe is really called on th= em: > I think that it will be called even on empty code blocks, but I'm not s= ure > if there is some optimization in there. > > - measure the time it takes to export each one to html (say). > > - add a call to org-mode-restart into org-babel-execute-maybe, and time t= he > same operation again: how significant is the slowdown? > > If the slowdown is bearable in these cases, then it will be bearable in > realistic situations, where block execution is going to be a much more > significant fraction of the total. I'll give it a shot, and report the pre/post results "=C3=A0 la Weight Watc= hers". Thanks for pointing out some detailed calls I have to make for testing that idea! > BTW, what's the biggest file you (all, not just Seb) have in terms of the > number of code blocks it contains? In my case, the largest one had about = two > dozen code blocks, so the 100 case would easily cover me, but I suspect > there are much bigger ones out there. The biggest number of code blocks in any document I have is around 20. Best regards, Seb --=20 Sebastien Vauban