From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47678 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: reducing compile time Date: Mon, 23 Feb 2009 21:40:28 +0100 Message-ID: References: <326847810902230916j8b11aacq95a8db16ccbc8024@mail.gmail.com> <326847810902231157kc49bd83i8df988abc0ee28be@mail.gmail.com> <326847810902231226v63744395y56374cec7f10b8eb@mail.gmail.com> 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 1235421738 25327 80.91.229.12 (23 Feb 2009 20:42:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Feb 2009 20:42:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 23 21:43:33 2009 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 1LbheG-0006gw-4Y for gctc-ntg-context-518@m.gmane.org; Mon, 23 Feb 2009 21:43:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6A2D41FD72; Mon, 23 Feb 2009 21:42:07 +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 22176-02; Mon, 23 Feb 2009 21:41:08 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D46A41FCF6; Mon, 23 Feb 2009 21:41:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2E1CD1FCF6 for ; Mon, 23 Feb 2009 21:41:07 +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 21570-04 for ; Mon, 23 Feb 2009 21:40:29 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id E48511FCF5 for ; Mon, 23 Feb 2009 21:40:29 +0100 (CET) Original-Received: from mail-bw0-f165.google.com (mail-bw0-f165.google.com [209.85.218.165]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1NKeT9l009162 for ; Mon, 23 Feb 2009 21:40:29 +0100 Original-Received: by bwz9 with SMTP id 9so5403377bwz.2 for ; Mon, 23 Feb 2009 12:40:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=e7xyJgMxSv0qmtd7hJWK+zRyzHP7z76ckqZmFSBrkcc=; b=gOj5Cp6chVa1b/xyi9kRoVK/FZ+KHda6sysAvThcotzdhQgiu32MFlnFoCh+xG7IfX y5wDz+pSpUJY2wrGSmw6WItw+Vh2rK9q5gbNYSzyPIbzJokUUY4Te3iceE3PJy/kRh6V xUiItJnsWi6/sbLMun+/zwnVmT1oEdzFFQaG0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=sRavizX207vQK1zRlyxd7OwVaXmNeMMHfUZrmrgvmTXNb5sY6WjYx40ckS9cyW+MT7 sohU/1otIaT6aD6X2fjlVS2K55LI1PLbTW7xSULSo9KS8BrJ7aeRi1xMBllMj2m9PytW T8x/iL0BeyKAKNAVxLH6nsptfFm2J4TEnWOAU= Original-Received: by 10.181.228.9 with SMTP id f9mr1652435bkr.103.1235421628832; Mon, 23 Feb 2009 12:40:28 -0800 (PST) In-Reply-To: <326847810902231226v63744395y56374cec7f10b8eb@mail.gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.218.165; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 184143703 - ed832d9e8619 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:47678 Archived-At: On Mon, Feb 23, 2009 at 9:26 PM, Alan Stone wrote: > On Mon, Feb 23, 2009 at 8:57 PM, Alan Stone > wrote: >> >> On Mon, Feb 23, 2009 at 6:54 PM, Wolfgang Schuster >> wrote: >>> >>> Am 23.02.2009 um 18:16 schrieb Alan Stone: >>> >>>> - does using \doifundefined{myMacro}{...} shorten tex runs/compile time >>>> ? >>> >>> In which way? >> >> As I don't know/understand what happens between (Lua)TeX runs, to keep >> macro definitions in memory. > > > Correction: to avoid spending time redefining macros in case their > definitions are kept in memory between Lua(TeX) runs. $>context test.tex is roughly finish :=false while not(finish): run_luatex_with_context_format_on_file(test.tex) where run_luatex_with_context_format_on_file(filename) is my imaginary name that run luatex (for example on my system luatex --fmt="/opt/luatex/minimals/tex/texmf-cache/luatex-cache/context/4330c3ed7721ca11f9d108c60c58eea4/formats/cont-en" --lua="/opt/luatex/minimals/tex/texmf-cache/luatex-cache/context/4330c3ed7721ca11f9d108c60c58eea4/formats/cont-en.lua" "./test.tex" ) but also check conditions to that change finish to true and possible write intermediate files. So,as far I know, each run is a new process: there is no a master process that spawns new children , and no definitions are kept in memory between Lua(TeX) runs. -- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________