From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46356 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: Re: distributed / parallel TeX? Date: Tue, 16 Dec 2008 11:25:59 -0600 Message-ID: <4947E4A7.4060602@sil.org> References: <4946E2E2.1050108@sil.org> <49476FDB.80309@wxs.nl> <4947CEE1.6040107@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1229450225 31776 80.91.229.12 (16 Dec 2008 17:57:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2008 17:57:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 16 18:58:07 2008 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 1LCeB6-0000OQ-Q2 for gctc-ntg-context-518@m.gmane.org; Tue, 16 Dec 2008 18:57:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AB2BA1FBEF; Tue, 16 Dec 2008 18:56:38 +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 25456-01-24; Tue, 16 Dec 2008 18:55:56 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 209EC1FBAC; Tue, 16 Dec 2008 18:27:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B8FB51FBAA for ; Tue, 16 Dec 2008 18:27:44 +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 25613-01-5 for ; Tue, 16 Dec 2008 18:26:42 +0100 (CET) Original-Received: from smtp1.wsfo.org (smtp1.wsfo.org [208.145.81.51]) by ronja.ntg.nl (Postfix) with ESMTP id CFB351FC0D for ; Tue, 16 Dec 2008 18:26:01 +0100 (CET) Original-Received: from mail.link77.net (mail.link77.net [172.22.0.125]) by smtp1.wsfo.org (8.13.1/8.13.1) with ESMTP id mBGHQ1sU018638 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 16 Dec 2008 12:26:01 -0500 X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.8.2 (ClamAV engine v0.94.1) Original-Received: from [172.20.4.229] (account lars_huttar@sil.org [172.20.4.229] verified) by mail.link77.net (CommuniGate Pro SMTP 5.2.10) with ESMTPSA id 203575362 for ntg-context@ntg.nl; Tue, 16 Dec 2008 12:26:00 -0500 User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) In-Reply-To: <4947CEE1.6040107@wxs.nl> X-Enigmail-Version: 0.95.7 X-Scanned-By: MIMEDefang 2.62 on 172.22.0.51 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:46356 Archived-At: On 12/16/2008 9:53 AM, Hans Hagen wrote: > Aditya Mahajan wrote: >> On Tue, 16 Dec 2008, Hans Hagen wrote: >> >>> Lars Huttar wrote: >>>> Hello, >>>> >>>> We've been using TeX to typeset a 1200-page book, and at that size, the >>>> time it takes to run becomes a big issue (especially with multiple >>>> passes... about 8 on average). It takes us anywhere from 80 minutes on >>>> our fastest machine, to 9 hours on our slowest laptop. >>> > > in jelle's doc it's the many many many local font definitions and the > some 800 metapost graphics that are the culprit We have close to 7000 mpgraphics, and they add about 15 minutes to the run time. But the run time was already quite long before we started using those. > > - define fonts beforehand OK, we will look into this. I'm sure Jelle knows about this but I'm a noob. I'm pretty sure we are not *loading* fonts every time, but maybe we're scaling fonts an unnecessary number of times. For example, we have the following macro, which we use thousands of times: \def\LN#1{{\switchtobodyfont[SansB,\LNfontsize]{#1}}} Would it help much to instead use \definefont[SansBLN][... at \LNfontsize] and then \def\LN#1{{\SansBLN{#1}}} ? > - use unique mpgraphic when possible I would be interested to know if this is possible in our situation. Most of our mpgraphics are due to wanting thick-and-thin or single-and-double borders on tables, which are not natively supported by the ConTeXt table model. The advice I received said to define each mpgraphic using \startuseMPgraphic (we have about 18 of these), associate them with overlays using \defineoverlay (again, we have 18), and then use them in table cells using statements like \setupTABLE[c][first][background={LRtb}] Empirically, this seems to end up using one mpgraphic per table cell, hence our thousands of mpgraphics. I don't know why a new mpgraphic would be created for each cell. Can someone suggest a way to avoid this? > i changes the definitions a bit and now get 5 pages per second on my > laptop in luatex; xetex processes the pages a bit faster but spends way > more time on the mp part My last run gave about 0.25 pages per second on our fastest server, when taking into account multiple passes; that comes out to about 2 pps for --once. > (of course 1450 pages of columnsets and multipage bTABLE's also cost a > bit of time) ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________