From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32438 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: [Fwd: [pdftex] pdftex 1.40] Date: Wed, 03 Jan 2007 07:26:05 +0000 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" X-Trace: sea.gmane.org 1167809194 30496 80.91.229.12 (3 Jan 2007 07:26:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Jan 2007 07:26:34 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 03 08:26:31 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1H20W6-0000SZ-UE for gctc-ntg-context-518@m.gmane.org; Wed, 03 Jan 2007 08:26:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3574A1FE8C; Wed, 3 Jan 2007 08:23:51 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31939-06-6; Wed, 3 Jan 2007 08:23:37 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AEC081FE64; Wed, 3 Jan 2007 08:23:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2875B1FE8F for ; Wed, 3 Jan 2007 08:23:34 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32096-04 for ; Wed, 3 Jan 2007 08:23:28 +0100 (CET) Original-Received: from mraos.ra.phy.cam.ac.uk (mraos.ra.phy.cam.ac.uk [131.111.48.8]) by ronja.ntg.nl (Postfix) with SMTP id AA5671FE69 for ; Wed, 3 Jan 2007 08:23:27 +0100 (CET) Original-Received: from skye.ra.phy.cam.ac.uk ([131.111.48.158] ident=mail) by mraos.ra.phy.cam.ac.uk with esmtp (Exim 4.43) id 1H20Vh-0005nY-Ae; Wed, 03 Jan 2007 07:26:05 +0000 Original-Received: from sanjoy by skye.ra.phy.cam.ac.uk with local (Exim 3.36 #1) id 1H20Vh-0006Tw-00; Wed, 03 Jan 2007 07:26:05 +0000 Original-To: mailing list for ConTeXt users In-Reply-To: Your message of "Tue, 02 Jan 2007 20:48:16 EST." Content-ID: <24900.1167809124.0@skye.ra.phy.cam.ac.uk> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:32438 Archived-At: ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24900.1167809124.1@skye.ra.phy.cam.ac.uk> >>From the texexec man page: --fast Typeset the document(s) as fast as possible without causing problems. --final Perform a final run without skipping anything. This option is typically used with --fast. So --fast --final could be the pair of switches to add. But I tried an experiment with mediocre results, using this test file: ====================== q.tex ================= \doifnotmode{*last}{\pdfdraftmode=1} \starttext \completecontent \chapter{A} \dorecurse{500}{\input tufte\par} \chapter{B} \dorecurse{400}{\input tufte\par} \chapter{C} \dorecurse{100}{\input tufte\par} \stoptext ============================================ I ran it with the attached Makefile, which produced this output: ctxtools --purge --all > /dev/null rm -f q.pdf texexec --verbose --fast --final q.tex > run.log Total runs : 4 (counted by grepping run.log for running: pdfetex) Draftmode runs: 3 (counted by grepping run.log for pdfdraftmode) TeXExec | runtime: 7.987485 Then I commented out the first line and reran it: ctxtools --purge --all > /dev/null rm -f q.pdf texexec --verbose --fast --final q.tex > run.log Total runs : 4 Draftmode runs: 0 (just to check) TeXExec | runtime: 8.307869 So the draftmode saves 4% in the runtime. But the fastest is to not use the draftmode and not use --final (which causes an extra run). Maybe I missing a trick, but the draftmode didn't save much time. I guess I should make the test file read in a few huge images? -Sanjoy ------- =_aaaaaaaaaa0 Content-Type: text/plain; name="Makefile"; charset="us-ascii" Content-ID: <24900.1167809124.2@skye.ra.phy.cam.ac.uk> Content-Description: Makefile .PHONY: runit clean runit: clean texexec --verbose --fast --final q.tex > run.log @echo -n "Total runs : " ; grep "running: pdfetex" run.log | wc -l @echo -n "Draftmode runs: " ; grep "pdfdraftmode enabled" run.log | wc -l @grep runtime: run.log clean: ctxtools --purge --all > /dev/null rm -f q.pdf ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ------- =_aaaaaaaaaa0--