From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85166 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: two suggestions to \typesetbuffer Date: Sat, 9 Nov 2013 13:03:04 +0100 Message-ID: References: <527D296F.3060006@gmx.es> <527D6823.20209@wxs.nl> <527E214F.70900@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1383998625 2603 80.91.229.3 (9 Nov 2013 12:03:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Nov 2013 12:03:45 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 09 13:03:51 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 1Vf7G1-0004ni-Ug for gctc-ntg-context-518@m.gmane.org; Sat, 09 Nov 2013 13:03:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CF83810222; Sat, 9 Nov 2013 13:03:16 +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 4I9UhrAf5yS0; Sat, 9 Nov 2013 13:03:14 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 60386101FC; Sat, 9 Nov 2013 13:03:14 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BD779101FC for ; Sat, 9 Nov 2013 13:03:12 +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 0OD1cYbFw8K1 for ; Sat, 9 Nov 2013 13:03:11 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 093E4101FB for ; Sat, 9 Nov 2013 13:03:10 +0100 (CET) Original-Received: from mail-ea0-x229.google.com (mail-ea0-x229.google.com [IPv6:2a00:1450:4013:c01::229]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rA9C38Ic001220 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 9 Nov 2013 13:03:08 +0100 Original-Received: by mail-ea0-f169.google.com with SMTP id z10so1376460ead.28 for ; Sat, 09 Nov 2013 04:03:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=skL4Am9faWB46gLweFCUW0MwHbObtc1WGXfqNq9ukfU=; b=t/JmU6B+2ME3uiAT+cTCLRZ7DJEZacLHGNLvrtvo/6PhOor6zdGuFF2c1edyPZFwTs zgH2BeirdTKpM2ci0PBoI1jRIpevz3yBqg+u0/yaBOMyY3rCQpC3DHbh2IaF2wyvTuB9 E2Fp+2j8LpvbxZMaoCYjeHag9s+F4Ih4vvi4xHQKEb9PNSNokv6IekuGnYV+4d2MgGFA delISIK2EhaSYrGz3AZ6zSAoEybxIyOipag+NTptPeontdPTAi5SU4iErNpoZQayXcxt BeeMAEFAFMRLqURRzm8EwY+OsPxUUUT7w7+E7YboUB4ZmhIgVGQuB4NSdX4lYt67SC6C lNWQ== X-Received: by 10.15.73.130 with SMTP id h2mr2708669eey.56.1383998588087; Sat, 09 Nov 2013 04:03:08 -0800 (PST) Original-Received: from keima.localdomain (x2f250c4.dyn.telefonica.de. [2.242.80.196]) by mx.google.com with ESMTPSA id z1sm35207767eeo.14.2013.11.09.04.03.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 09 Nov 2013 04:03:06 -0800 (PST) In-Reply-To: <527E214F.70900@gmx.es> X-Mailer: Apple Mail (2.1822) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::229; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07KLo388b - dd0a30ce4ff0 - 20131109 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:85166 Archived-At: Am 09.11.2013 um 12:49 schrieb Pablo Rodriguez : > 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. Try the filter module: https://github.com/adityam/filter Wolfgang ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________