From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66999 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Does MKIV take more time as MKII Date: Mon, 14 Mar 2011 20:52:10 +0100 Message-ID: References: <201103141434.58531.alan.braslau@cea.fr> 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: dough.gmane.org 1300132377 31395 80.91.229.12 (14 Mar 2011 19:52:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 19:52:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 14 20:52:53 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PzDoy-0007ni-DL for gctc-ntg-context-518@m.gmane.org; Mon, 14 Mar 2011 20:52:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CC594CAB03; Mon, 14 Mar 2011 20:52:50 +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 9Oz2-T-b581l; Mon, 14 Mar 2011 20:52:34 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 892C1CAB04; Mon, 14 Mar 2011 20:52:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 67846CAB04 for ; Mon, 14 Mar 2011 20:52:32 +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 WeGn+RCF3-fD for ; Mon, 14 Mar 2011 20:52:22 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 55666CAB03 for ; Mon, 14 Mar 2011 20:52:21 +0100 (CET) Original-Received: from mail-px0-f170.google.com (mail-px0-f170.google.com [209.85.212.170]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2EJqBLf028571 for ; Mon, 14 Mar 2011 20:52:14 +0100 Original-Received: by pxi19 with SMTP id 19so1293953pxi.15 for ; Mon, 14 Mar 2011 12:52:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=eehu0PAPbeWU3uvNza3poP14B5ITDLI60+gfMU/rBWQ=; b=ICKsigm3bLubPPyRRlpkbwc9/lqvm+8sAdvNUEV3OlNcT6MyyxRWm5x9i3zvMbG1fm UKWxRg11mMbdiBPjVzr0rZyE6oNKpdHHcfro01DYRDhoKs6U9BjH0WhartB660y3d5qH i3n/Zxqr4cAhUESN6R7t+RKRcyXKN/m7OId/k= 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 :cc:content-type; b=BF32eZxyjZq+2Fn/mpdurycF9t4Ss7ph9RmQJIaOwTCS7xjxlulm3XDSzUtmiCmtc7 gxasbyOjhDfQqZ+Poijnx5sLANj/TQ4LCBRaO/5IirzCO1D94nPYaQCqWSCBYhtjLCX3 FQSOTlnte/1rqKNRNxmTZeXvAByhGgZB+1L6Y= Original-Received: by 10.143.21.1 with SMTP id y1mr10711837wfi.441.1300132330765; Mon, 14 Mar 2011 12:52:10 -0700 (PDT) Original-Received: by 10.143.156.13 with HTTP; Mon, 14 Mar 2011 12:52:10 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.212.170; 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: 0bEj7QbtT - 490da9793813 - 20110314 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:66999 Archived-At: On Mon, Mar 14, 2011 at 14:47, Cecil Westerhof wrote: > > Both did not work for me. But removing --purgeall from my script reduced the > time from 30 seconds to 10. When you don't use --purgeall, ConTeXt calculates different things (for example table of contents, cross-references etc.) and stores them to temporary files. Next time when you compile the same document without too many changes it simply reuses the old data. But if you remove the temporary files with --purgeall, ConTeXt has to recalculate everything from scratch. Out of curiosity I checked that on my own document and realized exactly the same thing. Compile time dropped from 27 to 9 seconds, but only because ConTeXt had to read and typeset the document three times (I thought it usually did it twice). If you remove all the temporary files and call context without --purgeall, it will also take 30 seconds to typeset everything; it is only the second and all the subsequent runs that finish the job faster. Mojca PS: You would get the same kind of behaviour in MKII (however if MKII only runs twice and if there is a speed factor of 1.5, you could declare MKII being "three times faster" which does make some difference when compilation time is long). PPS (not to be taken (too) seriously): But I wouldn't be surprized if, say, two years from now you would try to repeat the experiment just to find out that MKIV became faster. (Unlikely to happen, but imaging Taco coming to idea to use all the four processor cores of your new machine and Hans reducing the number of required runs from three to two plus some extra optimizations.) ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________