From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46357 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: distributed / parallel TeX? Date: Tue, 16 Dec 2008 18:37:40 +0100 Message-ID: <4947E764.9030205@wxs.nl> References: <4946E2E2.1050108@sil.org> <49476FDB.80309@wxs.nl> <4947CEE1.6040107@wxs.nl> <4947E4A7.4060602@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1229451353 3663 80.91.229.12 (16 Dec 2008 18:15:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2008 18:15:53 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 16 19:16:57 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 1LCeTK-000893-MY for gctc-ntg-context-518@m.gmane.org; Tue, 16 Dec 2008 19:16:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A52FC1FC6A; Tue, 16 Dec 2008 19:15:28 +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 30924-10-18; Tue, 16 Dec 2008 19:14:52 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DC3A21FB60; Tue, 16 Dec 2008 18:38:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4BB501FADB for ; Tue, 16 Dec 2008 18:38:16 +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 23885-02-20 for ; Tue, 16 Dec 2008 18:37:40 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with ESMTP id 34C6F1FBD4 for ; Tue, 16 Dec 2008 18:37:40 +0100 (CET) Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.9e) with ESMTP id 17936-1840426 for ; Tue, 16 Dec 2008 18:37:40 +0100 User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) In-Reply-To: <4947E4A7.4060602@sil.org> X-Originating-IP: 10.100.1.100 X-Authenticated-User: hagen@controller-1 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:46357 Archived-At: Lars Huttar wrote: > We have close to 7000 mpgraphics, and they add about 15 minutes to the > run time. most of them are the same so reusing them made sense > 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}}} indeed this will define the scaled ones again and again (whole sets of them since you use a complete switch); internall tex reuses them but it only know so when they're defined > Would it help much to instead use > \definefont[SansBLN][... at \LNfontsize] > and then > \def\LN#1{{\SansBLN{#1}}} > ? indeed: \definefont[SansBLN][... at \LNfontsize] but no extra { } needed: \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. i sent jelle the patched files > 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? metafun manual: unique mp graphics >> 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. the patched files do 5-10 pps on my laptop (was > 1 sec pp) so an improvement factor of at least 5 is possible there are probably other optimizations possible but i cannot spent too much time on it Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________