From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85165 Path: news.gmane.org!not-for-mail From: Pablo Rodriguez Newsgroups: gmane.comp.tex.context Subject: Re: two suggestions to \typesetbuffer Date: Sat, 09 Nov 2013 12:49:35 +0100 Message-ID: <527E214F.70900@gmx.es> References: <527D296F.3060006@gmx.es> <527D6823.20209@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1383997809 27676 80.91.229.3 (9 Nov 2013 11:50:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Nov 2013 11:50:09 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 09 12:50:15 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vf72x-0003cp-Q7 for gctc-ntg-context-518@m.gmane.org; Sat, 09 Nov 2013 12:49:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E001510212; Sat, 9 Nov 2013 12:49:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xhctvofjjMlB; Sat, 9 Nov 2013 12:49:44 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8A4A5101FC; Sat, 9 Nov 2013 12:49:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E4AE8101FC for ; Sat, 9 Nov 2013 12:49:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jkvxa8T9Jsrq for ; Sat, 9 Nov 2013 12:49:41 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 363B9101FB for ; Sat, 9 Nov 2013 12:49:41 +0100 (CET) Original-Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rA9Bne7J020309 for ; Sat, 9 Nov 2013 12:49:40 +0100 Original-Received: from localhost.localdomain ([79.147.167.125]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LZiQy-1W2KOF49NM-00lUoQ for ; Sat, 09 Nov 2013 12:49:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: <527D6823.20209@wxs.nl> X-Provags-ID: V03:K0:oeawJQsRXx0IV3VJ5gmJ2u5VHN5+r+z33sa04Uq/j75DwegLNMh gktLMZHFFoUGstpJIk9ziHSnmISK6PnlIS6zQLUmj8F7SMz0l5Ci/jIXnt6fG3nulj251Xc eHItOW7rQqW71sUjCO8DsY7YqZRwIr4BJ+hy3D4BnbgX/IEAbRhN4pdVfBhPnDmhzgTp7ll fU9KgM8UWtibujARpLB0Q== X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.227.15.18; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NKLnNEF5 - 674f1fe18d5a - 20131109 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85165 Archived-At: On 11/08/2013 11:39 PM, Hans Hagen wrote: > On 11/8/2013 7:11 PM, Pablo Rodriguez wrote: >> Dear Hans, >> >> I have presentations that include buffers typeset with \typesetbuffer. >> >> One of the presentation includes 33 buffers, which are small ConTeXt >> samples. >> >> Any time I change anything on the presentation (not on the buffers >> themselves), every buffer is typeset again. And the compilation time is >> longer than probably desired. >> >> My first suggestion would be to skip compiling buffers again, if the >> following three requirements are met: >> >> 1. Buffer content (.tmp file, I guess) is identical (checked with a >> hash) with the previous one from last compilation. > = > no temp file is used but a although a hash is possible it also means a = > lot of extra housekeeping due to the fact that buffers are reused (in = > which case no run happens) Compiling the presentation I=91m talking about for the first time on my laptop takes about 210 seconds. Every subsequent compilation takes about 70 seconds. I know my laptop is old and slow. But if I make a copy of the presentation source and remove the \typesetbuffer commands, first compilation takes about 22 seconds and subsequent compilations take about 7 seconds. I have no idea on how ConTeXt works internally, but what I=92m trying to say is that if \typesetbuffer has been already compiled, compiling again is no gain. >> 3. Buffer content was correctly compiled in previous compilation. > = > define correctly I meant completely compiled: PDF has been generated. >> My second suggestion may be a bit complex to implement, but I think it >> would be useful. Wouldn=92t it be possible that the fonts are only >> embedded one in the presentation? > = > how often does it happen ... if we're talking about one page files = > processing should normally fast e.g. > = > \setupbodyfont[pagella] \starttext \input tufte \stoptext > = > takes .3 seconds on my laptop. > = > normally fonts are embedded efficiently (subsets) and shared Sorry, there was a typo in my message: =93that fonts are only embedded once in the presentation=94. My second suggestion isn=92t about compilation time, but about duplicated fonts. I tried to provide a sample, but I don=92t know why it doesn=92t work: \starttext These are bufers: \dorecurse{10}{\startbuffer[text:\recurselevel]\setuppapersize[A7]\starttex= t\input tufte\stoptext\stopbuffer\typesetbuffer[text:\recurselevel][frame=3Don]} \stoptext Of course, fonts are embedded fine in documents, but \typesetbuffer is a special case. Having the fonts embedded only once in the final document would be better. Many thanks for your help, Pablo -- = http://www.ousia.tk ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________